From 5f2d91b452c68f482fbe777157d05c929bf8a2f1 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 13 Nov 2013 12:39:31 +0100 Subject: [PATCH] Always set global / randomize on boot settings --- src/biz/bokhorst/xprivacy/SettingsDialog.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/biz/bokhorst/xprivacy/SettingsDialog.java b/src/biz/bokhorst/xprivacy/SettingsDialog.java index 41fa2d108..618f77b97 100644 --- a/src/biz/bokhorst/xprivacy/SettingsDialog.java +++ b/src/biz/bokhorst/xprivacy/SettingsDialog.java @@ -355,18 +355,18 @@ public void onClick(View view) { PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingSubscriber, etSubscriber .getText().toString()); PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingUa, etUa.getText().toString()); + } - if (uid == 0) { - PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingAndroidUsage, - Boolean.toString(cbUsage.isChecked())); - PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingLog, - Boolean.toString(cbLog.isChecked())); - } - - PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingRandom, - Boolean.toString(cbRandom.isChecked())); + if (uid == 0) { + PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingAndroidUsage, + Boolean.toString(cbUsage.isChecked())); + PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingLog, + Boolean.toString(cbLog.isChecked())); } + PrivacyManager.setSetting(null, context, uid, PrivacyManager.cSettingRandom, + Boolean.toString(cbRandom.isChecked())); + // Done dlgSettings.dismiss(); }