Skip to content

Commit 6a25cbd

Browse files
committed
Make USER_PRESENT broadcast per-user.
Bug: 7029707 Change-Id: Ic4671b96525dc2fb4d58ce3fca0a4627598a6cae
1 parent 2c1dfa2 commit 6a25cbd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import android.os.RemoteException;
4040
import android.os.SystemClock;
4141
import android.os.SystemProperties;
42+
import android.os.UserHandle;
4243
import android.provider.Settings;
4344
import android.telephony.TelephonyManager;
4445
import android.util.EventLog;
@@ -1030,7 +1031,9 @@ private void handleKeyguardDone(boolean wakeup) {
10301031
mPM.wakeUp(SystemClock.uptimeMillis());
10311032
}
10321033
mWakeLock.release();
1033-
mContext.sendBroadcast(mUserPresentIntent);
1034+
1035+
final UserHandle currentUser = new UserHandle(mLockPatternUtils.getCurrentUser());
1036+
mContext.sendBroadcastAsUser(mUserPresentIntent, currentUser);
10341037
}
10351038

10361039
/**

0 commit comments

Comments
 (0)