Add title on dog trace info (time and objects).
This commit is contained in:
parent
5c061cd2be
commit
443a7179e8
|
|
@ -540,7 +540,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
|
|||
private void updateDistance() {
|
||||
String text = null;
|
||||
if (serviceGps.isTraceurActivated()) {
|
||||
text = String.format("Distance: %,dm\t\t\t\t\t\t\t\tObjects: %d", ((int) distance), serviceGps.getListGeoPointObjects().size());
|
||||
text = String.format("Distance: %,dm\t\t\t\t\t\t\t\tObjets: %d", ((int) distance), serviceGps.getListGeoPointObjects().size());
|
||||
} else if (serviceGps.isDogActivated()) {
|
||||
MyLocation firstLoc = serviceGps.getListGeoPointDog().getFirstLocation();
|
||||
MyLocation lastLoc = serviceGps.getListGeoPointDog().getLastLocation();
|
||||
|
|
@ -552,7 +552,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
|
|||
long m = (time % 60);
|
||||
time /= 60;
|
||||
long h = (time % 60);
|
||||
text = String.format("%02d:%02d:%02d", h, m, s);
|
||||
text = String.format("Time: %02d:%02d:%02d", h, m, s);
|
||||
|
||||
int nbFoundObject = 0;
|
||||
for (MyLocation loc: serviceGps.getListGeoPointObjects()) {
|
||||
|
|
@ -560,7 +560,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
|
|||
nbFoundObject++;
|
||||
}
|
||||
}
|
||||
text += "\t\t\t\t\t\t\t\t"+nbFoundObject+"/"+serviceGps.getListGeoPointObjects().size();
|
||||
text += "\t\t\t\t\t\t\t\tObjets: "+nbFoundObject+"/"+serviceGps.getListGeoPointObjects().size();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue