Remembers previous location mode when location off

Multipart CL. Must be submitted together with ag/821599

Bug: 25608291
Change-Id: Ibfa39ba9b844421cd86a5aa4266e4389534f16be
This commit is contained in:
Lifu Tang
2015-11-25 21:44:17 -08:00
parent 0976f3481c
commit ee0db4c35b
2 changed files with 2 additions and 2 deletions

View File

@@ -395,7 +395,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);
}