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

Commit 0d2bfddf authored by Mady Mellor's avatar Mady Mellor
Browse files

Ensure bubble bar gets excluded from the screenshot in app clips

Flag: com.android.wm.shell.bubble_bar
Test: manual - enable bubble bar
             - get a bubble that supports app clips
             - tap the app clip button
             => verify that bubble UI isn't in the screenshot
Bug: 343753351
Change-Id: Ifc2a424a572a174a5fe6a34485f33f34bf279f1d
parent 488981a4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1457,8 +1457,9 @@ public class BubbleController implements ConfigurationChangeListener,
            SynchronousScreenCaptureListener screenCaptureListener) {
        try {
            ScreenCapture.CaptureArgs args = null;
            if (mStackView != null) {
                ViewRootImpl viewRoot = mStackView.getViewRootImpl();
            View viewToUse = mStackView != null ? mStackView : mLayerView;
            if (viewToUse != null) {
                ViewRootImpl viewRoot = viewToUse.getViewRootImpl();
                if (viewRoot != null) {
                    SurfaceControl bubbleLayer = viewRoot.getSurfaceControl();
                    if (bubbleLayer != null) {