Use the right userId when setting restrictions
Bug: 27457164 Change-Id: I9528b637cb0bc3f737458e078725f73666bd0d7d
This commit is contained in:
@@ -78,9 +78,8 @@ public class RestrictionUtils {
|
||||
public static void setRestrictions(Context context, ArrayList<RestrictionEntry> entries,
|
||||
UserHandle user) {
|
||||
UserManager um = UserManager.get(context);
|
||||
|
||||
for (RestrictionEntry entry : entries) {
|
||||
um.setUserRestriction(entry.getKey(), !entry.getSelectedState());
|
||||
um.setUserRestriction(entry.getKey(), !entry.getSelectedState(), user);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user