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

Commit

Permalink
Showing whitelist icon on category level
Browse files Browse the repository at this point in the history
Fixes #1741
  • Loading branch information
M66B committed Jun 20, 2014
1 parent 6db9a43 commit 58596e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Changelog

* Added restrictions for [SIP](http://en.wikipedia.org/wiki/Session_Initiation_Protocol) calling ([issue](/../../issues/1739))
* Disabling on demand restricting until update service completes
* Showing whitelist icon on category level ([issue](/../../issues/1741))
* Made *About* scrollable
* Updated Italian translation
* Updated Lithuanian translation
Expand Down
7 changes: 7 additions & 0 deletions src/biz/bokhorst/xprivacy/ActivityApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,13 @@ else if (PrivacyManager.cContacts.equals(restrictionName))
whitelist = true;
break;
}
if (!whitelist)
for (Hook hook : PrivacyManager.getHooks(restrictionName))
if (hook.whitelist() != null)
if (PrivacyManager.getSettingList(mAppInfo.getUid(), hook.whitelist()).size() > 0) {
whitelist = true;
break;
}

enabled = PrivacyManager.getSettingBool(mAppInfo.getUid(), PrivacyManager.cSettingRestricted, true);

Expand Down

0 comments on commit 58596e9

Please sign in to comment.