Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
android_packages_apps_SetupWizard
Commits
fb045a86
Commit
fb045a86
authored
Nov 02, 2018
by
vincent
Browse files
port commit
6e8ca52d
to eelo-0.2
parent
37d2320e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/lineageos/setupwizard/LocationSettingsActivity.java
View file @
fb045a86
/*
* 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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment