diff options
| author | 2019-08-19 16:28:49 -0700 | |
|---|---|---|
| committer | 2019-08-19 16:28:49 -0700 | |
| commit | cc42ba2ee897c754d2b8fb04ee28f3f620b36ee3 (patch) | |
| tree | daa5fa4e33354cdcd9cef88c1fccafc8bc5d1a9b | |
| parent | fcc66c2661427841c6c642eb775614527fc85af3 (diff) | |
| parent | bec44cdd6f9bef9d714d519005b783cf69ffef4c (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.java | 4 |
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); |