OSDN Git Service

Merge "ScreenDecorations: Only draw cutout if requested" into pi-dev
authorTreeHugger Robot <treehugger-gerrit@google.com>
Thu, 12 Apr 2018 14:35:33 +0000 (14:35 +0000)
committerAndroid (Google) Code Review <android-gerrit@google.com>
Thu, 12 Apr 2018 14:35:33 +0000 (14:35 +0000)
1  2 
packages/SystemUI/src/com/android/systemui/ScreenDecorations.java

@@@ -393,10 -389,10 +397,10 @@@ public class ScreenDecorations extends 
              mBoundingRect.setEmpty();
              mBoundingPath.reset();
              int newVisible;
-             if (hasCutout()) {
+             if (shouldDrawCutout(getContext()) && hasCutout()) {
                  mBounds.set(mInfo.displayCutout.getBounds());
                  localBounds(mBoundingRect);
 -                mInfo.displayCutout.getBounds().getBoundaryPath(mBoundingPath);
 +                updateBoundingPath();
                  invalidate();
                  newVisible = VISIBLE;
              } else {