summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Miranda Kephart <mkephart@google.com> 2019-08-19 16:28:49 -0700
committer android-build-merger <android-build-merger@google.com> 2019-08-19 16:28:49 -0700
commitcc42ba2ee897c754d2b8fb04ee28f3f620b36ee3 (patch)
treedaa5fa4e33354cdcd9cef88c1fccafc8bc5d1a9b
parentfcc66c2661427841c6c642eb775614527fc85af3 (diff)
parentbec44cdd6f9bef9d714d519005b783cf69ffef4c (diff)
Merge "Set a minimum height for invocation lights" into qt-qpr1-dev
am: bec44cdd6f Change-Id: I974f4b85e1d48d6c22a8583657e31e4fc9835851
-rw-r--r--packages/SystemUI/src/com/android/systemui/assist/ui/InvocationLightsView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/assist/ui/InvocationLightsView.java b/packages/SystemUI/src/com/android/systemui/assist/ui/InvocationLightsView.java
index bc782a7d62eb..bb3bd781df66 100644
--- a/packages/SystemUI/src/com/android/systemui/assist/ui/InvocationLightsView.java
+++ b/packages/SystemUI/src/com/android/systemui/assist/ui/InvocationLightsView.java
@@ -100,7 +100,9 @@ public class InvocationLightsView extends View
int cornerRadiusBottom = DisplayUtils.getCornerRadiusBottom(context);
int cornerRadiusTop = DisplayUtils.getCornerRadiusTop(context);
- mViewHeight = Math.max(cornerRadiusBottom, cornerRadiusTop);
+ // ensure that height is non-zero even for square corners
+ mViewHeight = Math.max(Math.max(cornerRadiusBottom, cornerRadiusTop),
+ DisplayUtils.convertDpToPx(LIGHT_HEIGHT_DP, context));
final int dualToneDarkTheme = Utils.getThemeAttr(mContext, R.attr.darkIconTheme);
final int dualToneLightTheme = Utils.getThemeAttr(mContext, R.attr.lightIconTheme);