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

Commit a87219f0 authored by Chris Li's avatar Chris Li Committed by Automerger Merge Worker
Browse files

Merge "fix missing add global lock to call the anyTaskForId method." into main am: e2b47831

parents 7fccce76 e2b47831
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);
    }