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

Commit

Permalink
Revert "Prevent wrong global settings"
Browse files Browse the repository at this point in the history
This reverts commit 5d2abaf.

Fixes #1596
  • Loading branch information
M66B committed Mar 23, 2014
1 parent a48c742 commit d71dd26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/biz/bokhorst/xprivacy/PrivacyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d71dd26

Please sign in to comment.