From d71dd26b7257a11d634200d2045f44dadccbd6f6 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 23 Mar 2014 20:09:01 +0100 Subject: [PATCH] Revert "Prevent wrong global settings" This reverts commit 5d2abaff71c2039b20d695f270af5a93955e1142. Fixes #1596 --- src/biz/bokhorst/xprivacy/PrivacyManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/biz/bokhorst/xprivacy/PrivacyManager.java b/src/biz/bokhorst/xprivacy/PrivacyManager.java index 7d27fadcd..0b57ed8df 100644 --- a/src/biz/bokhorst/xprivacy/PrivacyManager.java +++ b/src/biz/bokhorst/xprivacy/PrivacyManager.java @@ -584,8 +584,8 @@ public static String getSetting(int uid, String type, String name, String defaul try { value = PrivacyService.getSetting(new PSetting(Math.abs(uid), type, name, null)).value; if (value == null) - if (Math.abs(uid) > 99) { - int userId = Util.getUserId(Math.abs(uid)); + if (uid > 99) { + int userId = Util.getUserId(uid); value = PrivacyService.getSetting(new PSetting(userId, type, name, defaultValue)).value; } else value = defaultValue;