Loading src/com/cyanogenmod/setupwizard/LocationSettingsActivity.java +5 −2 Original line number Original line Diff line number Diff line /* /* * Copyright (C) 2016 The CyanogenMod Project * Copyright (C) 2016 The CyanogenMod Project * Copyright (C) 2017 The LineageOS Project * Copyright (C) 2017 The LineageOS Project * Copyright (C) 2018 e.foundation * * * Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License. Loading Loading @@ -102,7 +103,9 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity { public void onResume() { public void onResume() { super.onResume(); super.onResume(); //refreshLocationMode(); //refreshLocationMode(); updateLocationToggles(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); //updateLocationToggles(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); setLocationMode(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); refreshLocationMode(); } } @Override @Override Loading Loading @@ -136,7 +139,7 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity { private void refreshLocationMode() { private void refreshLocationMode() { int mode = Settings.Secure.getInt(mContentResolver, Settings.Secure.LOCATION_MODE, int mode = Settings.Secure.getInt(mContentResolver, Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); if (mCurrentMode != mode) { if (mCurrentMode != mode) { mCurrentMode = mode; mCurrentMode = mode; Loading Loading
src/com/cyanogenmod/setupwizard/LocationSettingsActivity.java +5 −2 Original line number Original line Diff line number Diff line /* /* * Copyright (C) 2016 The CyanogenMod Project * Copyright (C) 2016 The CyanogenMod Project * Copyright (C) 2017 The LineageOS Project * Copyright (C) 2017 The LineageOS Project * Copyright (C) 2018 e.foundation * * * Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License. Loading Loading @@ -102,7 +103,9 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity { public void onResume() { public void onResume() { super.onResume(); super.onResume(); //refreshLocationMode(); //refreshLocationMode(); updateLocationToggles(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); //updateLocationToggles(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); setLocationMode(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); refreshLocationMode(); } } @Override @Override Loading Loading @@ -136,7 +139,7 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity { private void refreshLocationMode() { private void refreshLocationMode() { int mode = Settings.Secure.getInt(mContentResolver, Settings.Secure.LOCATION_MODE, int mode = Settings.Secure.getInt(mContentResolver, Settings.Secure.LOCATION_MODE, Settings.Secure.LOCATION_MODE_OFF); Settings.Secure.LOCATION_MODE_HIGH_ACCURACY); if (mCurrentMode != mode) { if (mCurrentMode != mode) { mCurrentMode = mode; mCurrentMode = mode; Loading