diff --git a/CHANGELOG.md b/CHANGELOG.md index c81f40084..2fdc53a54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ Changelog * Toggle restriction will allow to choose between, clear, restrict and template ([issue](/../../issues/1319)) * Option to select if existing restrictions should be deleted on fetch ([issue](/../../issues/1119)) * Move database to /data/system/xprivacy ([issue](/../../issues/1437)) -* Submit restricted functions with a whitelist as having an exception ([issue](/../../issues/1438)) +* Submit functions with a white/blacklist as having an exception ([issue](/../../issues/1438)) * Updated Dutch translation * Updated Italian translation diff --git a/src/biz/bokhorst/xprivacy/ActivityShare.java b/src/biz/bokhorst/xprivacy/ActivityShare.java index f4a229af0..459e94572 100644 --- a/src/biz/bokhorst/xprivacy/ActivityShare.java +++ b/src/biz/bokhorst/xprivacy/ActivityShare.java @@ -1362,9 +1362,9 @@ else if (restrictionName.equals(PrivacyManager.cContacts)) // TODO: split files and /proc boolean mWhitelisted = false; - if (mRestricted && md.whitelist() != null) { + if (md.whitelist() != null) { for (Boolean allowed : mapWhitelist.get(md.whitelist()).values()) - if (allowed) { + if (mRestricted ? allowed : !allowed) { mWhitelisted = true; break; }