Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8789e08a authored by sssemil's avatar sssemil Committed by Abhisek Devkota
Browse files

Quicksettings: Change GPS modes swiching

Change-Id: Ifb5e55fdc23778fcabf1c9efb2f181489ab4e34a
parent cbb290ac
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -85,16 +85,16 @@ public class GPSTile extends QuickSettingsTile implements LocationSettingsChange
        int newMode;

        switch (mCurrentMode) {
            case Settings.Secure.LOCATION_MODE_BATTERY_SAVING:
            case Settings.Secure.LOCATION_MODE_OFF:
                newMode = Settings.Secure.LOCATION_MODE_HIGH_ACCURACY;
                break;
            case Settings.Secure.LOCATION_MODE_HIGH_ACCURACY:
                newMode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING;
                break;
            case Settings.Secure.LOCATION_MODE_OFF:
                newMode = Settings.Secure.LOCATION_MODE_SENSORS_ONLY;
                break;
            case Settings.Secure.LOCATION_MODE_SENSORS_ONLY:
                newMode = Settings.Secure.LOCATION_MODE_BATTERY_SAVING;
                break;
            case Settings.Secure.LOCATION_MODE_BATTERY_SAVING:
                newMode = Settings.Secure.LOCATION_MODE_OFF;
                break;
            default: