Merge "Only updateDisplayDecoration if not the default"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e5607a2fc8
@@ -2856,7 +2856,10 @@ public final class ViewRootImpl implements ViewParent,
|
||||
if (mSurfaceControl.isValid()) {
|
||||
updateOpacity(mWindowAttributes, dragResizing,
|
||||
surfaceControlChanged /*forceUpdate */);
|
||||
if (surfaceControlChanged) {
|
||||
// No need to updateDisplayDecoration if it's a new SurfaceControl and
|
||||
// mDisplayDecorationCached is false, since that's the default for a new
|
||||
// SurfaceControl.
|
||||
if (surfaceControlChanged && mDisplayDecorationCached) {
|
||||
updateDisplayDecoration();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user