Refactoring

This commit is contained in:
2021-12-09 22:54:34 +01:00
parent 5ae193847e
commit 20acd563e7
4 changed files with 32 additions and 29 deletions

View File

@@ -121,9 +121,9 @@ public class LocationProvider
if (
locationList.size() >= 1
&&
locationList.get(locationList.size() - 1).getTime() == newLocation.getTime()
locationList.get(locationList.size() - 1).getTime() == newLocation.getTime()
&&
locationList.get(locationList.size() - 1).getProvider().equals(newLocation.getProvider())
locationList.get(locationList.size() - 1).getProvider().equals(newLocation.getProvider())
)
{
// This is a duplicate update, do not store it