aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/broeuschmeul
diff options
context:
space:
mode:
authorHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-10-23 23:50:41 +0200
committerHerbert von Broeuschmeul <Herbert.Broeuschmeul@gmail.com>2010-10-23 23:50:41 +0200
commitcddf1671d1c29f05219c33c96d1133b17941c0c6 (patch)
tree30ed05cdaed75f4ddde9bd54d59b94cfe69c3bae /src/org/broeuschmeul
parent32d6cc92009c2212fcacd03529b99ffc87ea1a4d (diff)
downloadBlueGPS-cddf1671d1c29f05219c33c96d1133b17941c0c6.zip
BlueGPS-cddf1671d1c29f05219c33c96d1133b17941c0c6.tar.gz
BlueGPS-cddf1671d1c29f05219c33c96d1133b17941c0c6.tar.bz2
Remove test on gps provider
Remove test for verifying if internal GPS is not enabled. So not enabling internal GPS doesn't prevent starting service.
Diffstat (limited to 'src/org/broeuschmeul')
-rw-r--r--src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
index 6ef4eff..bedaf36 100644
--- a/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
+++ b/src/org/broeuschmeul/android/gps/bluetooth/provider/BlueetoothGpsManager.java
@@ -128,18 +128,18 @@ public class BlueetoothGpsManager {
Log.e("BT test", "Device does not support Bluetooth");
disable(R.string.msg_bluetooth_unsupported);
} else if (!bluetoothAdapter.isEnabled()) {
-// Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
-// startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);
+ // Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
+ // startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);
Log.e("BT test", "Bluetooth is not enabled");
disable(R.string.msg_bluetooth_disabled);
} else if (Settings.Secure.getInt(callingService.getContentResolver(),Settings.Secure.ALLOW_MOCK_LOCATION, 0)==0){
Log.e("BT test", "Mock location provider OFF");
disable(R.string.msg_mock_location_disabled);
- } else if ( (! locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
- // && (sharedPreferences.getBoolean(BluetoothGpsProviderService.PREF_REPLACE_STD_GPS, true))
- ) {
- Log.e("BT test", "GPS location provider OFF");
- disable(R.string.msg_gps_provider_disabled);
+// } else if ( (! locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER))
+// // && (sharedPreferences.getBoolean(BluetoothGpsProviderService.PREF_REPLACE_STD_GPS, true))
+// ) {
+// Log.e("BT test", "GPS location provider OFF");
+// disable(R.string.msg_gps_provider_disabled);
} else {
BluetoothDevice gpsDevice = bluetoothAdapter.getRemoteDevice(gpsDeviceAddress);
if (gpsDevice == null){