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.OsmandMapTileView;
|
||||||
import net.osmand.plus.views.TextInfoControl;
|
import net.osmand.plus.views.TextInfoControl;
|
||||||
import net.osmand.util.Algorithms;
|
import net.osmand.util.Algorithms;
|
||||||
|
import net.osmand.util.MapAlgorithms;
|
||||||
|
|
||||||
import org.apache.commons.logging.Log;
|
import org.apache.commons.logging.Log;
|
||||||
|
|
||||||
|
@ -244,21 +245,14 @@ public class AudioVideoNotesPlugin extends OsmandPlugin {
|
||||||
String additional = "";
|
String additional = "";
|
||||||
if(duration > 0) {
|
if(duration > 0) {
|
||||||
int d = (int) (duration / 1000);
|
int d = (int) (duration / 1000);
|
||||||
|
additional += Algorithms.formatDuration(d);
|
||||||
String min;
|
|
||||||
if(d % 60 < 10 ) {
|
|
||||||
min = "0" + (d % 60);
|
|
||||||
} else {
|
|
||||||
min = (d % 60) +"";
|
|
||||||
}
|
|
||||||
additional += (d / 60) + ":" + min ;
|
|
||||||
}
|
}
|
||||||
if(!available) {
|
if(!available) {
|
||||||
additional += "("+ctx.getString(R.string.recording_unavailable)+")";
|
additional += "("+ctx.getString(R.string.recording_unavailable)+")";
|
||||||
}
|
}
|
||||||
return additional;
|
return additional;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue