diff options
| author | 2024-09-04 11:39:48 +0530 | |
|---|---|---|
| committer | 2024-10-11 08:34:57 +0000 | |
| commit | 34d8176e245ab93c6b10b00b19316edd49b12167 (patch) | |
| tree | b4ffa5ecb794583a7515f1b6187a82832a98a4dd | |
| parent | 5aff6ff4f9a9163f96ad6b30215e132f252d61d4 (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java index c87b1f526957..8891c166b837 100644 --- a/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java +++ b/packages/SystemUI/src/com/android/systemui/screenshot/ScreenshotController.java @@ -429,7 +429,9 @@ public class ScreenshotController implements ScreenshotHandler { setWindowFocusable(true); mViewProxy.requestFocus(); - enqueueScrollCaptureRequest(requestId, screenshot.getUserHandle()); + if (screenshot.getType() != WindowManager.TAKE_SCREENSHOT_PROVIDED_IMAGE) { + enqueueScrollCaptureRequest(requestId, screenshot.getUserHandle()); + } attachWindow(); |