Adjust window rounded corners
Test: manual Fixes: 136652290 Change-Id: I969b00528e269da16021387cb8298e05aeeb63ab
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user