Fix #4814
This commit is contained in:
parent
1ba84e719a
commit
bd8b497d10
2 changed files with 10 additions and 0 deletions
|
@ -481,6 +481,15 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
|||
return date + " • " + sz + " • " + getDuration(ctx, false);
|
||||
}
|
||||
|
||||
public String getTypeWithDuration(Context ctx) {
|
||||
StringBuilder res = new StringBuilder(getType(ctx));
|
||||
if (isAudio() || isVideo()) {
|
||||
updateInternalDescription();
|
||||
res.append(", ").append(getDuration(ctx, false));
|
||||
}
|
||||
return res.toString();
|
||||
}
|
||||
|
||||
public String getPlainDuration(boolean accessibilityEnabled) {
|
||||
updateInternalDescription();
|
||||
if (duration > 0) {
|
||||
|
|
|
@ -499,6 +499,7 @@ public class NotesFragment extends OsmAndListFragment {
|
|||
wpt.link = r.getFileName();
|
||||
wpt.time = r.getFile().lastModified();
|
||||
wpt.category = r.getSearchHistoryType();
|
||||
wpt.desc = r.getTypeWithDuration(getContext());
|
||||
getMyApplication().getSelectedGpxHelper().addPoint(wpt, file);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue