aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-05-05 21:01:22 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2011-05-05 22:27:20 +0200
commit2663c6645efff1b4a26315ee390c0d484caf1579 (patch)
treea2275d382235a8187cd4e5c379590752b1338d1c
parent6258affa34f7b8916a8ba29d5ee6d9ebce9893b2 (diff)
downloadBlueGPS-2663c6645efff1b4a26315ee390c0d484caf1579.zip
BlueGPS-2663c6645efff1b4a26315ee390c0d484caf1579.tar.gz
BlueGPS-2663c6645efff1b4a26315ee390c0d484caf1579.tar.bz2
take the preference into account for location provider activation
-rw-r--r--src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
index 7092c32..0145208 100644
--- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
+++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
@@ -492,7 +492,7 @@ public class BlueetoothGpsManager {
if (parser != null){
Log.d(LOG_TAG, "enabling mock locations provider: "+gpsName);
boolean force = sharedPreferences.getBoolean(BluetoothGpsProviderService.PREF_FORCE_ENABLE_PROVIDER, false);
- parser.enableMockLocationProvider(gpsName, false);
+ parser.enableMockLocationProvider(gpsName, force);
}
}