Merge "Add DEBUG flag for rounded corner and display cutout path" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
353d26c897
@@ -106,6 +106,7 @@ public class ScreenDecorations extends SystemUI implements Tunable,
|
||||
private static final boolean DEBUG_SCREENSHOT_ROUNDED_CORNERS =
|
||||
SystemProperties.getBoolean("debug.screenshot_rounded_corners", false);
|
||||
private static final boolean VERBOSE = false;
|
||||
private static final boolean DEBUG_COLOR = DEBUG_SCREENSHOT_ROUNDED_CORNERS;
|
||||
|
||||
private DisplayManager mDisplayManager;
|
||||
private DisplayManager.DisplayListener mDisplayListener;
|
||||
@@ -461,6 +462,9 @@ public class ScreenDecorations extends SystemUI implements Tunable,
|
||||
|
||||
private void updateColorInversion(int colorsInvertedValue) {
|
||||
int tint = colorsInvertedValue != 0 ? Color.WHITE : Color.BLACK;
|
||||
if (DEBUG_COLOR) {
|
||||
tint = Color.RED;
|
||||
}
|
||||
ColorStateList tintList = ColorStateList.valueOf(tint);
|
||||
((ImageView) mOverlay.findViewById(R.id.left)).setImageTintList(tintList);
|
||||
((ImageView) mOverlay.findViewById(R.id.right)).setImageTintList(tintList);
|
||||
|
||||
Reference in New Issue
Block a user