Merge "Use the right userId when setting restrictions" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
39b900bd0c
@@ -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