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

Commit fb045a86 authored by vincent's avatar vincent
Browse files

port commit 6e8ca52d9664944575fddabee4ac0fe412080832 to eelo-0.2

parent 37d2320e
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
/*
 * Copyright (C) 2016 The CyanogenMod Project
 * Copyright (C) 2017 The LineageOS Project
 * Copyright (C) 2018 e.foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
@@ -102,7 +103,12 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity {
    public void onResume() {
        super.onResume();
        //refreshLocationMode();
        updateLocationToggles(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY);
        //updateLocationToggles(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY);
        
        setLocationMode(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY);
        refreshLocationMode();


    }

    @Override
@@ -136,7 +142,7 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity {

    private void refreshLocationMode() {
        int mode = Settings.Secure.getInt(mContentResolver, Settings.Secure.LOCATION_MODE,
                Settings.Secure.LOCATION_MODE_OFF);
                Settings.Secure.LOCATION_MODE_HIGH_ACCURACY);

        if (mCurrentMode != mode) {
            mCurrentMode = mode;