Added distance from current location to opend location

This commit is contained in:
RemoMeijer
2021-01-12 12:18:21 +01:00
parent d4abd7a566
commit 0f17e8d1e5
5 changed files with 75 additions and 44 deletions

View File

@@ -338,6 +338,7 @@ public class HomeFragment extends Fragment implements LocationListener {
// can't walk 100 meters in a few seconds
if (distance < 100)
Data.INSTANCE.addDistance(distance);
Data.INSTANCE.setLocation(location);
}
currentLocation = location;