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

Commit e5607a2f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only updateDisplayDecoration if not the default"

parents 96a5e513 f02c47d8
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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();
                    }
                }