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

Commit 85561055 authored by Suprabh Shukla's avatar Suprabh Shukla Committed by Android (Google) Code Review
Browse files

Merge "Fix parantheses in conditional" into rvc-dev

parents b390818c fe0fc291
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -13117,7 +13117,7 @@ public class PackageManagerService extends IPackageManager.Stub
        synchronized (mLock) {
            allPackages = mPackages.keySet().toArray(new String[mPackages.size()]);
        }
        PackageManagerService.this.removeDistractingPackageRestrictions(allPackages, userId);
        removeDistractingPackageRestrictions(allPackages, userId);
    }
    /**
@@ -20161,13 +20161,13 @@ public class PackageManagerService extends IPackageManager.Stub
            }
            synchronized (mLock) {
                pkgSetting.setEnabled(newState, userId, callingPackage);
                if (newState == COMPONENT_ENABLED_STATE_DISABLED_USER
                        || newState == COMPONENT_ENABLED_STATE_DISABLED
                if ((newState == COMPONENT_ENABLED_STATE_DISABLED_USER
                        || newState == COMPONENT_ENABLED_STATE_DISABLED)
                        && pkgSetting.getPermissionsState().hasPermission(
                                Manifest.permission.SUSPEND_APPS, userId)) {
                    // This app should not generally be allowed to get disabled by the UI, but if it
                    // ever does, we don't want to end up with some of the user's apps permanently
                    // blocked
                    // suspended.
                    unsuspendForSuspendingPackage(packageName, userId);
                    removeAllDistractingPackageRestrictions(userId);
                }
+2 −0
Original line number Diff line number Diff line
@@ -4837,6 +4837,8 @@ public final class Settings {
            pw.print(ps.getHidden(user.id));
            pw.print(" suspended=");
            pw.print(ps.getSuspended(user.id));
            pw.print(" distractionFlags=");
            pw.print(ps.getDistractionFlags(user.id));
            pw.print(" stopped=");
            pw.print(ps.getStopped(user.id));
            pw.print(" notLaunched=");