From 7e27d37f5cc9fa52e03b73b9308640e2dace3ed6 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 24 Feb 2014 06:08:54 +0100 Subject: [PATCH] Also submit black list exceptions Refs #1438 --- CHANGELOG.md | 2 +- src/biz/bokhorst/xprivacy/ActivityShare.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; }