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
55ef36c6
Commit
55ef36c6
authored
Oct 30, 2018
by
vince-bourgmayer
Browse files
port commit
655078f5
from eelo-0.1 to eelo-0.2
parent
fcb9b25a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/org/lineageos/setupwizard/FinishActivity.java
View file @
55ef36c6
...
...
@@ -235,22 +235,13 @@ public class FinishActivity extends BaseSetupWizardActivity {
}
private
static
void
handleEnableMetrics
(
SetupWizardApp
setupWizardApp
)
{
Bundle
privacyData
=
setupWizardApp
.
getSettingsBundle
();
if
(
privacyData
!=
null
&&
privacyData
.
containsKey
(
KEY_SEND_METRICS
))
{
LineageSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
LineageSettings
.
Secure
.
STATS_COLLECTION
,
privacyData
.
getBoolean
(
KEY_SEND_METRICS
)
?
1
:
0
);
}
LineageSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
LineageSettings
.
Secure
.
STATS_COLLECTION
,
0
);
}
private
static
void
handlePrivacyGuard
(
SetupWizardApp
setupWizardApp
)
{
Bundle
mPrivacyData
=
setupWizardApp
.
getSettingsBundle
();
if
(
mPrivacyData
!=
null
&&
mPrivacyData
.
containsKey
(
KEY_PRIVACY_GUARD
))
{
LineageSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
LineageSettings
.
Secure
.
PRIVACY_GUARD_DEFAULT
,
mPrivacyData
.
getBoolean
(
KEY_PRIVACY_GUARD
)
?
1
:
0
);
}
LineageSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
LineageSettings
.
Secure
.
PRIVACY_GUARD_DEFAULT
,
0
);
}
private
static
void
handleNavKeys
(
SetupWizardApp
setupWizardApp
)
{
...
...
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