Loading src/org/lineageos/setupwizard/LocationSettingsActivity.java +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. Loading Loading @@ -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 Loading Loading @@ -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; Loading Loading
src/org/lineageos/setupwizard/LocationSettingsActivity.java +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. Loading Loading @@ -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 Loading Loading @@ -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; Loading