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

Commit 8c0f2400 authored by Joy Yoonhyung Lee's avatar Joy Yoonhyung Lee Committed by Android (Google) Code Review
Browse files

Merge "Send showNewUserDisclaimer broadcast when user switching" into main

parents b81315ca 88578d5b
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1131,9 +1131,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());
        }
    }
@@ -3831,8 +3831,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) {