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

Commit 95b4cb57 authored by Amith Yamasani's avatar Amith Yamasani Committed by Android (Google) Code Review
Browse files

Merge "Fix accidental creation of restriction entry for required apps"

parents f9ee312b 9e9c77c1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -601,7 +601,8 @@ public class AppRestrictionsFragment extends SettingsPreferenceFragment implemen
                    if (!hasSettings && !isSettingsApp) continue;
                    // Get and populate the defaults, since the user is not going to be
                    // able to toggle this app ON (it's ON by default and immutable).
                    if (hasSettings) {
                    // Only do this for restricted profiles, not single-user restrictions
                    if (hasSettings && mRestrictedProfile) {
                        requestRestrictionsForApp(packageName, p);
                    }
                } else if (!mNewUser && isAppEnabledForUser(pi)) { /*appInfoListHasPackage(mUserApps, packageName)*/