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

Commit

Permalink
Change state to gray when unrestricting
Browse files Browse the repository at this point in the history
Closes #1190
  • Loading branch information
M66B committed Jan 29, 2014
1 parent 8d8a22c commit dbf133c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Test and beta releases will have experimental functions enabled by default.

**Next release**

* Change state to gray when unrestricting ([issue](https://github.com/M66B/XPrivacy/issues/1190))

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

**Version 1.99.20 BETA**
Expand Down
2 changes: 1 addition & 1 deletion src/biz/bokhorst/xprivacy/ActivityMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class ActivityMain extends Activity implements OnItemSelectedListener, Co
private Handler mProHandler = new Handler();

public static final int STATE_ATTENTION = 0;
public static final int STATE_RESTRICTED = 1;
public static final int STATE_CHANGED = 1;
public static final int STATE_SHARED = 2;

private static final int SORT_BY_NAME = 0;
Expand Down
7 changes: 3 additions & 4 deletions src/biz/bokhorst/xprivacy/PrivacyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,9 @@ public static boolean setRestriction(XHook hook, int uid, String restrictionName
PrivacyManager.setRestriction(hook, uid, restrictionName, md.getName(), dangerous);
}

// Mark state as restricted
if (restricted)
PrivacyManager.setSetting(hook, uid, PrivacyManager.cSettingState,
Integer.toString(ActivityMain.STATE_RESTRICTED));
// Mark state as changed
PrivacyManager
.setSetting(hook, uid, PrivacyManager.cSettingState, Integer.toString(ActivityMain.STATE_CHANGED));

// Change app modification time
PrivacyManager.setSetting(null, uid, PrivacyManager.cSettingModifyTime,
Expand Down

0 comments on commit dbf133c

Please sign in to comment.