Merge "Check if user is unlocked when handler is executed" into nyc-dev

am: beb3d2990b

* commit 'beb3d2990b2b480d06f465a8df4a6509ec4e098b':
  Check if user is unlocked when handler is executed

Change-Id: I31d2777b1a06802aa2450c7d9242a4f1c5d555a5
This commit is contained in:
Philip P. Moltmann
2016-05-02 17:08:23 +00:00
committed by android-build-merger

View File

@@ -836,6 +836,8 @@ public final class PrintManagerService extends SystemService {
BackgroundThread.getHandler().post(new Runnable() {
@Override
public void run() {
if (!mUserManager.isUserUnlockingOrUnlocked(userId)) return;
UserState userState;
synchronized (mLock) {
userState = getOrCreateUserStateLocked(userId, true);