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

Commit e0366681 authored by chaviw's avatar chaviw
Browse files

Check if SC is valid before calling setTransparentRegionHint

Fixes: 179863777
Test: Steps from bug
Change-Id: I915a3f8cdef3e21d33e9458c35db7259ed88ca5d
parent 7392f388
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3070,8 +3070,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();
                    }
                }
            }