Commit 6e8ca52d authored by Unknown's avatar Unknown
Browse files

Set High Accuracy mode

parent 8bcb06d8
/* /*
* 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.
...@@ -102,7 +103,9 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity { ...@@ -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
...@@ -136,7 +139,7 @@ public class LocationSettingsActivity extends BaseSetupWizardActivity { ...@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment