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

Commit

Permalink
Clear will also clear usage data and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Aug 25, 2014
1 parent 15ff088 commit 7df4022
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Version 2.99.x and version 3.x will be available with a [pro license](http://www

**Next release**

* Clear will also clear usage data and settings
* Updated Arabic translation
* Updated Italian translation
* Updated Japanese translation
Expand Down Expand Up @@ -230,6 +231,7 @@ XPrivacy 2
* Added help texts
* Updated in application documentation
* Added option to merge template to reset functions (not categories)
* Clear will also clear usage data and settings
* Updated Arabic translation
* Updated Dutch translation
* Updated French translation
Expand Down
7 changes: 6 additions & 1 deletion src/biz/bokhorst/xprivacy/ActivityShare.java
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,13 @@ protected Throwable doInBackground(String... params) {

List<Boolean> oldState = PrivacyManager.getRestartStates(uid, restrictionName);

if (actionId == R.id.rbClear)
if (actionId == R.id.rbClear) {
PrivacyManager.deleteRestrictions(uid, restrictionName, (restrictionName == null));
if (restrictionName == null) {
PrivacyManager.deleteUsage(uid);
PrivacyManager.deleteSettings(uid);
}
}

else if (actionId == R.id.rbRestrict) {
PrivacyManager.setRestriction(uid, restrictionName, null, true, false);
Expand Down

0 comments on commit 7df4022

Please sign in to comment.