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

Commit 66351d62 authored by Justin Harrison's avatar Justin Harrison Committed by Android Git Automerger
Browse files

am cff6d450: Merge "Ensure that the USER_PRESENT_INTENT is sent to all...

am cff6d450: Merge "Ensure that the USER_PRESENT_INTENT is sent to all profiles of the current user." into lmp-mr1-dev

* commit 'cff6d450':
  Ensure that the USER_PRESENT_INTENT is sent to all profiles of the current user.
parents 1a7bac35 cff6d450
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -72,6 +72,7 @@ import com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager;
import com.android.systemui.statusbar.phone.StatusBarWindowManager;
import com.android.systemui.statusbar.phone.StatusBarWindowManager;


import java.util.ArrayList;
import java.util.ArrayList;
import java.util.List;


import static android.provider.Settings.System.SCREEN_OFF_TIMEOUT;
import static android.provider.Settings.System.SCREEN_OFF_TIMEOUT;


@@ -1217,7 +1218,12 @@ public class KeyguardViewMediator extends SystemUI {
        synchronized (this) {
        synchronized (this) {
            if (mBootCompleted) {
            if (mBootCompleted) {
                final UserHandle currentUser = new UserHandle(mLockPatternUtils.getCurrentUser());
                final UserHandle currentUser = new UserHandle(mLockPatternUtils.getCurrentUser());
                mContext.sendBroadcastAsUser(USER_PRESENT_INTENT, currentUser);
                final UserManager um = (UserManager) mContext.getSystemService(
                        Context.USER_SERVICE);
                List <UserInfo> userHandles = um.getProfiles(currentUser.getIdentifier());
                for (UserInfo ui : userHandles) {
                    mContext.sendBroadcastAsUser(USER_PRESENT_INTENT, ui.getUserHandle());
                }
            } else {
            } else {
                mBootSendUserPresent = true;
                mBootSendUserPresent = true;
            }
            }