Loading src/com/android/settings/location/LocationSettings.java +1 −1 Original line number Diff line number Diff line Loading @@ -398,7 +398,7 @@ public class LocationSettings extends LocationSettingsBase @Override public void onSwitchChanged(Switch switchView, boolean isChecked) { if (isChecked) { setLocationMode(android.provider.Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); setLocationMode(android.provider.Settings.Secure.LOCATION_MODE_PREVIOUS); } else { setLocationMode(android.provider.Settings.Secure.LOCATION_MODE_OFF); } Loading src/com/android/settings/widget/SettingsAppWidgetProvider.java +1 −1 Original line number Diff line number Diff line Loading @@ -569,7 +569,7 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { mode = Settings.Secure.LOCATION_MODE_OFF; break; case Settings.Secure.LOCATION_MODE_OFF: mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; mode = Settings.Secure.LOCATION_MODE_PREVIOUS; break; } Settings.Secure.putInt(resolver, Settings.Secure.LOCATION_MODE, mode); Loading Loading
src/com/android/settings/location/LocationSettings.java +1 −1 Original line number Diff line number Diff line Loading @@ -398,7 +398,7 @@ public class LocationSettings extends LocationSettingsBase @Override public void onSwitchChanged(Switch switchView, boolean isChecked) { if (isChecked) { setLocationMode(android.provider.Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); setLocationMode(android.provider.Settings.Secure.LOCATION_MODE_PREVIOUS); } else { setLocationMode(android.provider.Settings.Secure.LOCATION_MODE_OFF); } Loading
src/com/android/settings/widget/SettingsAppWidgetProvider.java +1 −1 Original line number Diff line number Diff line Loading @@ -569,7 +569,7 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { mode = Settings.Secure.LOCATION_MODE_OFF; break; case Settings.Secure.LOCATION_MODE_OFF: mode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY; mode = Settings.Secure.LOCATION_MODE_PREVIOUS; break; } Settings.Secure.putInt(resolver, Settings.Secure.LOCATION_MODE, mode); Loading