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

Commit

Permalink
Displaying changed state when all restrictions are cleared
Browse files Browse the repository at this point in the history
Fixess #1748
  • Loading branch information
M66B committed Jun 24, 2014
1 parent c8a1ab7 commit 0b21f27
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Changelog
* You can use [PlayPermissionsExposed](http://forum.xda-developers.com/xposed/modules/playpermissionsexposed-fix-play-store-t2783076) instead
* Fixed template functions exceptions being display after 15 seconds
* Applying template will not apply to disabled restrictions anymore ([issue](/../../issues/1747))
* Displaying changed state when all restrictions are cleared ([issue](/../../issues/1748))
* The application state is shown with a color left in the application list
* Updated Slovak translation

**Please send the support info when asked for**
Expand Down
3 changes: 2 additions & 1 deletion src/biz/bokhorst/xprivacy/PrivacyManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ public static void deleteRestrictions(int uid, String restrictionName, boolean d
}

// Mark as new/changed
setSetting(uid, cSettingState, Integer.toString(ActivityMain.STATE_ATTENTION));
setSetting(uid, cSettingState,
Integer.toString(restrictionName == null ? ActivityMain.STATE_CHANGED : ActivityMain.STATE_ATTENTION));

// Change app modification time
setSetting(uid, cSettingModifyTime, Long.toString(System.currentTimeMillis()));
Expand Down

0 comments on commit 0b21f27

Please sign in to comment.