Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efb19502 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Check if user is unlocked when handler is executed

When the user gets unlocked we schedule a handler-runnable to do cleanup work.
This runnable might be executed after the user is already locked again.

Fixes: 28512952
Change-Id: I6c05cbc8adab699e451565d74d56ad0f9b965954
parent a5d3e91c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);