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
d149daa6
Commit
d149daa6
authored
Jul 23, 2018
by
Unknown
Browse files
Set Metrics & Privacy settings false
parent
9fca38a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/com/cyanogenmod/setupwizard/FinishActivity.java
View file @
d149daa6
...
...
@@ -240,22 +240,13 @@ public class FinishActivity extends BaseSetupWizardActivity {
}
private
static
void
handleEnableMetrics
(
SetupWizardApp
setupWizardApp
)
{
Bundle
privacyData
=
setupWizardApp
.
getSettingsBundle
();
if
(
privacyData
!=
null
&&
privacyData
.
containsKey
(
KEY_SEND_METRICS
))
{
CMSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
CMSettings
.
Secure
.
STATS_COLLECTION
,
privacyData
.
getBoolean
(
KEY_SEND_METRICS
)
?
1
:
0
);
}
CMSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
CMSettings
.
Secure
.
STATS_COLLECTION
,
0
);
}
private
static
void
handlePrivacyGuard
(
SetupWizardApp
setupWizardApp
)
{
Bundle
mPrivacyData
=
setupWizardApp
.
getSettingsBundle
();
if
(
mPrivacyData
!=
null
&&
mPrivacyData
.
containsKey
(
KEY_PRIVACY_GUARD
))
{
CMSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
CMSettings
.
Secure
.
PRIVACY_GUARD_DEFAULT
,
mPrivacyData
.
getBoolean
(
KEY_PRIVACY_GUARD
)
?
1
:
0
);
}
CMSettings
.
Secure
.
putInt
(
setupWizardApp
.
getContentResolver
(),
CMSettings
.
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