diff --git a/CHANGELOG.md b/CHANGELOG.md index 93e5c9edd..5e9b8ba2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/biz/bokhorst/xprivacy/ActivityApp.java b/src/biz/bokhorst/xprivacy/ActivityApp.java index b075c860a..b3f8ce321 100644 --- a/src/biz/bokhorst/xprivacy/ActivityApp.java +++ b/src/biz/bokhorst/xprivacy/ActivityApp.java @@ -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);