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

Commit d589f615 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

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

parents c8f98396 e0366681
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();
                    }
                }
            }