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

Commit

Permalink
Merge pull request #1241 from jpeg729/bugfix
Browse files Browse the repository at this point in the history
Bugfix
  • Loading branch information
M66B committed Feb 3, 2014
2 parents ae62214 + 6f4cfe8 commit a6299a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/PrivacyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ else if (mRestart.keySet().contains(restrictionName))
try {
for (String restriction : listRestriction) {
for (String method : mRestart.get(restriction))
listRestartRestriction.add(getRestriction(null, uid, restriction, method, null));
listRestartRestriction.add(getRestrictionEx(uid, restriction, method).restricted);
}
} catch (Throwable ex) {
Util.bug(null, ex);
Expand Down
4 changes: 2 additions & 2 deletions src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -550,14 +550,14 @@ public List<PRestriction> getRestrictionList(PRestriction selector) throws Remot
if (selector.restrictionName == null)
for (String sRestrictionName : PrivacyManager.getRestrictions()) {
PRestriction restriction = new PRestriction(selector.uid, sRestrictionName, null, false);
restriction.restricted = getRestriction(restriction, false, mSecret).restricted;
restriction.restricted = getRestriction(restriction, false, null).restricted;
result.add(restriction);
}
else
for (Hook md : PrivacyManager.getHooks(selector.restrictionName)) {
PRestriction restriction = new PRestriction(selector.uid, selector.restrictionName,
md.getName(), false);
restriction.restricted = getRestriction(restriction, false, mSecret).restricted;
restriction.restricted = getRestriction(restriction, false, null).restricted;
result.add(restriction);
}
} catch (Throwable ex) {
Expand Down

0 comments on commit a6299a8

Please sign in to comment.