Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Always set global / randomize on boot settings
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Nov 13, 2013
1 parent 8a4d632 commit 5f2d91b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/biz/bokhorst/xprivacy/SettingsDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 5f2d91b

Please sign in to comment.