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

Commit

Permalink
Revert "Fixed on demand restricting for dangerous methods with whitel…
Browse files Browse the repository at this point in the history
…ists"

This reverts commit 63946e5.

Refs #1653
  • Loading branch information
M66B committed May 17, 2014
1 parent 59d1678 commit 116ee6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Changelog
**Next release**

* Fixed displaying contacts without display name ([issue](/../../issues/1660))
* Fixed on demand restricting for dangerous methods with whitelists ([issue](/../../issues/1653))

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

Expand Down
6 changes: 3 additions & 3 deletions src/biz/bokhorst/xprivacy/PrivacyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,10 +467,10 @@ public static void applyTemplate(int uid, String restrictionName, boolean method
Boolean.toString(parentRestricted && (hook.isDangerous() ? dangerous : true))
+ (parentAsked ? "+asked" : "+ask"), false);
boolean restricted = value.contains("true");
boolean asked = (!ondemand || value.contains("asked"));
if ((parentRestricted && !restricted) || (!parentAsked && asked) || hook.isDangerous())
boolean asked = value.contains("asked");
if ((parentRestricted && !restricted) || (!parentAsked && asked))
listPRestriction.add(new PRestriction(uid, rRestrictionName, hook.getName(), parentRestricted
&& restricted, parentAsked || asked));
&& restricted, parentAsked || asked || !ondemand));
}
}
setRestrictionList(listPRestriction);
Expand Down

0 comments on commit 116ee6b

Please sign in to comment.