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

Commit 34d8176e authored by Noorul Irfan's avatar Noorul Irfan Committed by Mattias Nilsson
Browse files

Hide capture more option for non full-screen image

The "Capture more" feature is not needed for screenshots of type
"TAKE_SCREENSHOT_PROVIDED_IMAGE" because the screenshot is taken
for a specific application (i.e., where there is no scroll view).
Hence, disabling the "Capture more" option to prevent a crash.

Flag: NONE bug fix
Test: Manual, see Bug
Bug: 356648830
Change-Id: I60aad5ec8929f990fae62c682c661b6eb2279859
parent 5aff6ff4
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -429,7 +429,9 @@ public class ScreenshotController implements ScreenshotHandler {
        setWindowFocusable(true);
        setWindowFocusable(true);
        mViewProxy.requestFocus();
        mViewProxy.requestFocus();


        if (screenshot.getType() != WindowManager.TAKE_SCREENSHOT_PROVIDED_IMAGE) {
            enqueueScrollCaptureRequest(requestId, screenshot.getUserHandle());
            enqueueScrollCaptureRequest(requestId, screenshot.getUserHandle());
        }


        attachWindow();
        attachWindow();