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

Commit 46f58562 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Fix unsuspending personal apps.

Bug: 152479824
Test: atest OrgOwnedProfileOwnerTest#testPersonalAppsSuspensionNormalApp
Change-Id: If4923226dc60f682979cb289ae2da78f2ca7f98b
parent f0d56871
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -15742,9 +15742,11 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
            }
        }
        final int suspendedState = suspended
                ? PERSONAL_APPS_SUSPENDED_EXPLICITLY
                : PERSONAL_APPS_NOT_SUSPENDED;
        mInjector.binderWithCleanCallingIdentity(
                () -> applyPersonalAppsSuspension(
                        callingUserId, PERSONAL_APPS_SUSPENDED_EXPLICITLY));
                () -> applyPersonalAppsSuspension(callingUserId, suspendedState));
        DevicePolicyEventLogger
                .createEvent(DevicePolicyEnums.SET_PERSONAL_APPS_SUSPENDED)