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

Commit 1bc86900 authored by Abhisek Devkota's avatar Abhisek Devkota Committed by Gerrit Code Review
Browse files

Revert "Quicksettings: Change GPS modes switching"

This reverts commit 8789e08a.

Change-Id: I8ee594b7e2368b35cba86d33c453c25f9445ed2f
parent 281712a3
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_OFF:
            case Settings.Secure.LOCATION_MODE_BATTERY_SAVING:
                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: