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

Commit eaf062ab authored by Mark Renouf's avatar Mark Renouf
Browse files

Remove isWindowToken check from requestScrollCapture

The 'behindClient' argument is optional, it is used to filter
window selection to those below the give window (the UI of the
screenshots tool itself).

Change-Id: I33696c79dfbbf7d06410384745ce75ccce837594
parent f47cec16
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -6925,9 +6925,6 @@ public class WindowManagerService extends IWindowManager.Stub
        if (!checkCallingPermission(READ_FRAME_BUFFER, "requestScrollCapture()")) {
            throw new SecurityException("Requires READ_FRAME_BUFFER permission");
        }
        if (behindClient != null && !isWindowToken(behindClient)) {
            throw new IllegalArgumentException("behindClient must be a window token");
        }
        final long token = Binder.clearCallingIdentity();
        try {
            synchronized (mGlobalLock) {