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

Commit 0c14cb5e authored by frank PREEL's avatar frank PREEL Committed by Romain Hunault
Browse files

Wi-Fi scanning

parent 6b755c39
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -103,7 +103,6 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity {
    @Override
    public void onResume() {
        super.onResume();
        
        setLocationMode(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY);
        refreshLocationMode();
    }
@@ -152,6 +151,8 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity {
    }

    private void updateLocationToggles(int mode) {
        Settings.Global.putInt(mContentResolver,
                Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 0);
        switch (mode) {
            case Settings.Secure.LOCATION_MODE_OFF:
                mLocationAccess.setChecked(false);
@@ -184,6 +185,8 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity {
                mBattery.setChecked(false);
                mBattery.setEnabled(false);
                mBatteryRow.setEnabled(false);
                Settings.Global.putInt(mContentResolver,
                    Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE, 1);
                break;
            default:
                mLocationAccess.setChecked(false);