aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/GeoDataProvider.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/GeoDataProvider.java')
-rw-r--r--main/src/cgeo/geocaching/GeoDataProvider.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/GeoDataProvider.java b/main/src/cgeo/geocaching/GeoDataProvider.java
index 58b0696..441c871 100644
--- a/main/src/cgeo/geocaching/GeoDataProvider.java
+++ b/main/src/cgeo/geocaching/GeoDataProvider.java
@@ -6,6 +6,8 @@ import cgeo.geocaching.go4cache.Go4Cache;
import cgeo.geocaching.utils.Log;
import cgeo.geocaching.utils.MemorySubject;
+import org.apache.commons.lang3.StringUtils;
+
import android.content.Context;
import android.location.GpsSatellite;
import android.location.GpsStatus;
@@ -103,6 +105,11 @@ class GeoDataProvider extends MemorySubject<IGeoData> {
public int getSatellitesFixed() {
return satellitesFixed;
}
+
+ @Override
+ public boolean isPseudoLocation() {
+ return StringUtils.equals(getProvider(), GeoDataProvider.LAST_LOCATION_PSEUDO_PROVIDER);
+ }
}
private class Unregisterer extends Thread {