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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user