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
6e8ca52d
Commit
6e8ca52d
authored
Aug 31, 2018
by
Unknown
Browse files
Set High Accuracy mode
parent
8bcb06d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/com/cyanogenmod/setupwizard/LocationSettingsActivity.java
View file @
6e8ca52d
/*
* 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,9 @@ 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 +139,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
;
...
...
Vincent Bourgmayer
🎼
@vincent
mentioned in commit
fb045a86
·
Nov 02, 2018
mentioned in commit
fb045a86
mentioned in commit fb045a86b283ac7447bc9783384fc26dd6c40af3
Toggle commit list
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