Check if SC is valid before calling setTransparentRegionHint
Fixes: 179863777 Test: Steps from bug Change-Id: I915a3f8cdef3e21d33e9458c35db7259ed88ca5d
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user