Merge "Remove isWindowToken check from requestScrollCapture"

This commit is contained in:
Mark Renouf
2020-10-28 00:59:10 +00:00
committed by Android (Google) Code Review

View File

@@ -6928,9 +6928,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) {