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

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

Set High Accuracy mode

parent 8bcb06d8
Loading
Loading
Loading
Loading
+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.
@@ -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 {


    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;