Follow changes to RestrictionEntry API
Implement custom restrictions activity. Fixed some bugs. Change-Id: I094a6ffcc41c2936f76a8731048d7cb712c1b857
This commit is contained in:
@@ -460,8 +460,8 @@ public class Settings extends PreferenceActivity
|
||||
} else if (id == R.id.application_settings) {
|
||||
if (mAppRestrictions != null) {
|
||||
for (RestrictionEntry entry : mAppRestrictions) {
|
||||
if (entry.key.equals(RestrictionsReceiver.KEY_ENABLE_APPS)
|
||||
&& !entry.getBooleanValue()) {
|
||||
if (entry.getKey().equals(RestrictionsReceiver.KEY_ENABLE_APPS)
|
||||
&& !entry.getSelectedState()) {
|
||||
target.remove(i);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user