Skip to content

Commit 2e9aa74

Browse files
jsharkeyAndroid (Google) Code Review
authored andcommitted
Merge "Make USER_PRESENT broadcast per-user." into jb-mr1-dev
2 parents 11a03af + 6a25cbd commit 2e9aa74

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)