From 72dbd11ccddced2ffbe8af37befef6d245f7b834 Mon Sep 17 00:00:00 2001 From: Beverly Date: Mon, 8 Jul 2019 15:39:58 -0400 Subject: [PATCH] Adjust window rounded corners Test: manual Fixes: 136652290 Change-Id: I969b00528e269da16021387cb8298e05aeeb63ab --- .../policy/ScreenDecorationsUtils.java | 9 ++++++--- core/res/res/values/dimens.xml | 18 ++++++++++++++++++ core/res/res/values/symbols.xml | 3 +++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/core/java/com/android/internal/policy/ScreenDecorationsUtils.java b/core/java/com/android/internal/policy/ScreenDecorationsUtils.java index adf7692adc569..52172cf043629 100644 --- a/core/java/com/android/internal/policy/ScreenDecorationsUtils.java +++ b/core/java/com/android/internal/policy/ScreenDecorationsUtils.java @@ -36,13 +36,16 @@ public class ScreenDecorationsUtils { } // Radius that should be used in case top or bottom aren't defined. - float defaultRadius = resources.getDimension(R.dimen.rounded_corner_radius); + float defaultRadius = resources.getDimension(R.dimen.rounded_corner_radius) + - resources.getDimension(R.dimen.rounded_corner_radius_adjustment); - float topRadius = resources.getDimension(R.dimen.rounded_corner_radius_top); + float topRadius = resources.getDimension(R.dimen.rounded_corner_radius_top) + - resources.getDimension(R.dimen.rounded_corner_radius_top_adjustment); if (topRadius == 0f) { topRadius = defaultRadius; } - float bottomRadius = resources.getDimension(R.dimen.rounded_corner_radius_bottom); + float bottomRadius = resources.getDimension(R.dimen.rounded_corner_radius_bottom) + - resources.getDimension(R.dimen.rounded_corner_radius_bottom_adjustment); if (bottomRadius == 0f) { bottomRadius = defaultRadius; } diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index 5363ef9208868..039bc4d925a1c 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -90,6 +90,24 @@ orientation. If zero, the value of rounded_corner_radius is used. --> 0dp + + 0px + + 0px + + 0px + 48dp diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index 6e03f5e8e0186..c4f1083d37d35 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -3703,6 +3703,9 @@ + + +