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

Commit 04efdc82 authored by Matt Casey's avatar Matt Casey
Browse files

Manually apply "hide capture more" change to main

https://android-review.git.corp.google.com/c/platform/frameworks/base/+/3250819

Code moved in main, applying it manually.

Bug: 356648830
Bug: 373587617
Test: NONE merging simple change to main
Flag: EXEMPT minor bugfix
Change-Id: I5da5f61ce8e9252410054cbfa8de1ff013ebb5ec
parent fca8ee70
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -313,7 +313,9 @@ public class LegacyScreenshotController implements InteractiveScreenshotHandler
        setWindowFocusable(true);
        mViewProxy.requestFocus();

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

        attachWindow();

+4 −1
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ import android.util.Log
import android.view.Display
import android.view.ScrollCaptureResponse
import android.view.ViewRootImpl.ActivityConfigCallback
import android.view.WindowManager
import android.view.WindowManager.TAKE_SCREENSHOT_PROVIDED_IMAGE
import android.widget.Toast
import android.window.WindowContext
@@ -217,7 +218,9 @@ internal constructor(
        window.setFocusable(true)
        viewProxy.requestFocus()

        if (screenshot.type != WindowManager.TAKE_SCREENSHOT_PROVIDED_IMAGE) {
            enqueueScrollCaptureRequest(requestId, screenshot.userHandle)
        }

        window.attachWindow()