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

Commit 3db71622 authored by Joy Yoonhyung Lee's avatar Joy Yoonhyung Lee Committed by Gerrit Code Review
Browse files

Merge "Send showNewUserDisclaimer broadcast when user switching" into main

parents fd3466c4 08e21e63
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1115,9 +1115,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        }
        @Override
        public void onUserUnlocked(@NonNull TargetUser user) {
            if (user.isPreCreated()) return;
            mService.handleOnUserUnlocked(user.getUserIdentifier());
        public void onUserSwitching(@NonNull TargetUser from, @NonNull TargetUser to) {
            if (to.isPreCreated()) return;
            mService.handleOnUserSwitching(from.getUserIdentifier(), to.getUserIdentifier());
        }
    }
@@ -3680,8 +3680,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
        mDevicePolicyEngine.handleUnlockUser(userId);
    }
    void handleOnUserUnlocked(int userId) {
        showNewUserDisclaimerIfNecessary(userId);
    void handleOnUserSwitching(int fromUserId, int toUserId) {
        showNewUserDisclaimerIfNecessary(toUserId);
    }
    void handleStopUser(int userId) {