Add routing time to message
This commit is contained in:
parent
38466be2fd
commit
6138c24207
1 changed files with 3 additions and 9 deletions
|
@ -43,6 +43,7 @@ import net.osmand.plus.views.MapStackControl;
|
|||
import net.osmand.plus.views.OsmandMapTileView;
|
||||
import net.osmand.plus.views.TextInfoControl;
|
||||
import net.osmand.util.Algorithms;
|
||||
import net.osmand.util.MapAlgorithms;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
|
||||
|
@ -244,14 +245,7 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
|||
String additional = "";
|
||||
if(duration > 0) {
|
||||
int d = (int) (duration / 1000);
|
||||
|
||||
String min;
|
||||
if(d % 60 < 10 ) {
|
||||
min = "0" + (d % 60);
|
||||
} else {
|
||||
min = (d % 60) +"";
|
||||
}
|
||||
additional += (d / 60) + ":" + min ;
|
||||
additional += Algorithms.formatDuration(d);
|
||||
}
|
||||
if(!available) {
|
||||
additional += "("+ctx.getString(R.string.recording_unavailable)+")";
|
||||
|
|
Loading…
Reference in a new issue