Commit d149daa6 authored by Unknown's avatar Unknown
Browse files

Set Metrics & Privacy settings false

parent 9fca38a5
...@@ -240,22 +240,13 @@ public class FinishActivity extends BaseSetupWizardActivity { ...@@ -240,22 +240,13 @@ public class FinishActivity extends BaseSetupWizardActivity {
} }
private static void handleEnableMetrics(SetupWizardApp setupWizardApp) { 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.putInt(setupWizardApp.getContentResolver(),
CMSettings.Secure.STATS_COLLECTION, privacyData.getBoolean(KEY_SEND_METRICS) CMSettings.Secure.STATS_COLLECTION, 0);
? 1 : 0);
}
} }
private static void handlePrivacyGuard(SetupWizardApp setupWizardApp) { 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.putInt(setupWizardApp.getContentResolver(),
CMSettings.Secure.PRIVACY_GUARD_DEFAULT, CMSettings.Secure.PRIVACY_GUARD_DEFAULT, 0);
mPrivacyData.getBoolean(KEY_PRIVACY_GUARD) ? 1 : 0);
}
} }
private static void handleNavKeys(SetupWizardApp setupWizardApp) { private static void handleNavKeys(SetupWizardApp setupWizardApp) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment