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

Commit e2b47831 authored by Chris Li's avatar Chris Li Committed by Gerrit Code Review
Browse files

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

parents 3ffa87b0 deab34dc
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);
    }