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

Commit deab34dc authored by lijilou's avatar lijilou
Browse files

fix missing add global lock to call the anyTaskForId method.

The call chain: mRoot.anyTaskForId --> mTaskSupervisor.restoreRecentTaskLocked(need add global lock).

Bug: none
Flag: EXEMPT bugfix
Change-Id: I381e6af800f2c62f44879c13022f050b8a108eae
parent bf6919ec
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -9926,10 +9926,11 @@ public class WindowManagerService extends IWindowManager.Stub
            throw new SecurityException("Access denied to process: " + pid
                    + ", must have permission " + Manifest.permission.ACCESS_FPS_COUNTER);
        }

        synchronized (mGlobalLock) {
            if (mRoot.anyTaskForId(taskId) == null) {
                throw new IllegalArgumentException("no task with taskId: " + taskId);
            }
        }

        mTaskFpsCallbackController.registerListener(taskId, callback);
    }