Add title on dog trace info (time and objects).

This commit is contained in:
Chteufleur 2018-08-22 19:14:19 +02:00
parent 5c061cd2be
commit 443a7179e8
1 changed files with 3 additions and 3 deletions

View File

@ -540,7 +540,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
private void updateDistance() { private void updateDistance() {
String text = null; String text = null;
if (serviceGps.isTraceurActivated()) { 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()) { } else if (serviceGps.isDogActivated()) {
MyLocation firstLoc = serviceGps.getListGeoPointDog().getFirstLocation(); MyLocation firstLoc = serviceGps.getListGeoPointDog().getFirstLocation();
MyLocation lastLoc = serviceGps.getListGeoPointDog().getLastLocation(); MyLocation lastLoc = serviceGps.getListGeoPointDog().getLastLocation();
@ -552,7 +552,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
long m = (time % 60); long m = (time % 60);
time /= 60; time /= 60;
long h = (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; int nbFoundObject = 0;
for (MyLocation loc: serviceGps.getListGeoPointObjects()) { for (MyLocation loc: serviceGps.getListGeoPointObjects()) {
@ -560,7 +560,7 @@ public class MainActivity extends AppCompatActivity implements IOrientationConsu
nbFoundObject++; 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();
} }
} }