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

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

Merge "OMS: fix typos in permission check message"

parents b848ce8e d7191554
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -537,8 +537,8 @@ public final class OverlayManagerService extends SystemService {
        @Override
        @Override
        public boolean setEnabledExclusive(@Nullable final String packageName, final boolean enable,
        public boolean setEnabledExclusive(@Nullable final String packageName, final boolean enable,
                int userId) throws RemoteException {
                int userId) throws RemoteException {
            enforceChangeOverlayPackagesPermission("setEnabled");
            enforceChangeOverlayPackagesPermission("setEnabledExclusive");
            userId = handleIncomingUser(userId, "setEnabled");
            userId = handleIncomingUser(userId, "setEnabledExclusive");
            if (packageName == null || !enable) {
            if (packageName == null || !enable) {
                return false;
                return false;
            }
            }
@@ -557,8 +557,8 @@ public final class OverlayManagerService extends SystemService {
        @Override
        @Override
        public boolean setEnabledExclusiveInCategory(@Nullable String packageName, int userId)
        public boolean setEnabledExclusiveInCategory(@Nullable String packageName, int userId)
                throws RemoteException {
                throws RemoteException {
            enforceChangeOverlayPackagesPermission("setEnabled");
            enforceChangeOverlayPackagesPermission("setEnabledExclusiveInCategory");
            userId = handleIncomingUser(userId, "setEnabled");
            userId = handleIncomingUser(userId, "setEnabledExclusiveInCategory");
            if (packageName == null) {
            if (packageName == null) {
                return false;
                return false;
            }
            }