OSDN Git Service

Sometimes to move forward you need to move backwards.
authorJeff Sharkey <jsharkey@android.com>
Fri, 18 Dec 2015 18:24:20 +0000 (11:24 -0700)
committerJeff Sharkey <jsharkey@android.com>
Fri, 18 Dec 2015 18:24:20 +0000 (11:24 -0700)
Part B.

Bug: 26118802

Change-Id: Ieabfedfd0ebff5b1f3dc32d1de43aef9974f15d2

services/core/java/com/android/server/am/UserController.java

index 44975e6..5426b72 100644 (file)
@@ -246,6 +246,7 @@ final class UserController {
                 mHandler.sendMessage(mHandler.obtainMessage(SYSTEM_USER_UNLOCK_MSG, userId, 0));
 
                 final Intent unlockedIntent = new Intent(Intent.ACTION_USER_UNLOCKED);
+                unlockedIntent.putExtra(Intent.EXTRA_USER_HANDLE, userId);
                 unlockedIntent.addFlags(
                         Intent.FLAG_RECEIVER_REGISTERED_ONLY | Intent.FLAG_RECEIVER_FOREGROUND);
                 mService.broadcastIntentLocked(null, null, unlockedIntent, null, null, 0, null,