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

Commit f35b747d authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Check if SC is valid before calling setTransparentRegionHint" into sc-dev am: d589f615

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13549209

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I13528fead61b23d31c3a1a7a03c19a77a71443dd
parents 10b13492 d589f615
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3064,8 +3064,10 @@ public final class ViewRootImpl implements ViewParent,
                    // via the WM relayout code path. We probably eventually
                    // want to synchronize transparent region hint changes
                    // with draws.
                    mTransaction.setTransparentRegionHint(getSurfaceControl(),
                        mTransparentRegion).apply();
                    SurfaceControl sc = getSurfaceControl();
                    if (sc.isValid()) {
                        mTransaction.setTransparentRegionHint(sc, mTransparentRegion).apply();
                    }
                }
            }