Skip to content
Snippets Groups Projects
Commit 8b9febe1 authored by Mady Mellor's avatar Mady Mellor Committed by Android (Google) Code Review
Browse files

Merge "Ensure bubble bar gets excluded from the screenshot in app clips" into main

parents 86bc0b4e 0d2bfddf
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment