Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c386a39a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "arc: Do not construct RestrictionSet with empty restrictions bundle"

parents 324cfc0f 3520557a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3402,8 +3402,11 @@ public class UserManagerService extends IUserManager.Stub {
                    Slog.wtf(LOG_TAG, "Seeing both legacy and current local restrictions in xml");
                }
            } else if (legacyLocalRestrictions != null) {
                mDevicePolicyLocalUserRestrictions.put(id,
                        new RestrictionsSet(id, legacyLocalRestrictions));
                RestrictionsSet legacyLocalRestrictionsSet =
                        legacyLocalRestrictions.isEmpty()
                                ? new RestrictionsSet()
                                : new RestrictionsSet(id, legacyLocalRestrictions);
                mDevicePolicyLocalUserRestrictions.put(id, legacyLocalRestrictionsSet);
            }
            if (globalRestrictions != null) {
                mDevicePolicyGlobalUserRestrictions.updateRestrictions(id,