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

Commit d7191554 authored by Mårten Kongstad's avatar Mårten Kongstad
Browse files

OMS: fix typos in permission check message

Calls to enforceChangeOverlayPackagesPermission and handleIncomingUser
include a string parameter to be added to the exception thrown if the
caller doesn't hold the expected permission. Fix a couple of typos in
these strings.

Test: builds, boots
Change-Id: I70256c41d61f8af3735697c6e63644e5ac46fd84
parent 7a8e363c
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -537,8 +537,8 @@ public final class OverlayManagerService extends SystemService {
        @Override
        public boolean setEnabledExclusive(@Nullable final String packageName, final boolean enable,
                int userId) throws RemoteException {
            enforceChangeOverlayPackagesPermission("setEnabled");
            userId = handleIncomingUser(userId, "setEnabled");
            enforceChangeOverlayPackagesPermission("setEnabledExclusive");
            userId = handleIncomingUser(userId, "setEnabledExclusive");
            if (packageName == null || !enable) {
                return false;
            }
@@ -557,8 +557,8 @@ public final class OverlayManagerService extends SystemService {
        @Override
        public boolean setEnabledExclusiveInCategory(@Nullable String packageName, int userId)
                throws RemoteException {
            enforceChangeOverlayPackagesPermission("setEnabled");
            userId = handleIncomingUser(userId, "setEnabled");
            enforceChangeOverlayPackagesPermission("setEnabledExclusiveInCategory");
            userId = handleIncomingUser(userId, "setEnabledExclusiveInCategory");
            if (packageName == null) {
                return false;
            }