diff options
| author | 2024-11-18 14:35:36 +0000 | |
|---|---|---|
| committer | 2024-11-18 15:57:45 +0000 | |
| commit | 791e03a452b2f6eee648a5b9c3578e3a38c3b690 (patch) | |
| tree | 20f2c66ff0754dbdbef89e5bb98ba2d5bf3d55b4 /libs/androidfw/AttributeResolution.cpp | |
| parent | 0d0270676a0b91a844e04b9909cd67e50fc9b030 (diff) | |
Add gravity to ringer drawer background.
The problem arises on the phone with fractional dpi scaling. For
example, in case of scale == 3.5:
- layout_width="56dp" translates to 196px;
- layout_width="42dp" + paddingLeft="7dp" + paddingRight="7dp"
translates to 197px;
Setting background gravity to the layer-list background apparently forces
it occupy 196px instead of 197px in this case.
Flag: EXEMPT bugfix
Fixes: 293320952
Test: manual on phone with scale factor 3.5
Change-Id: I4b13ba3a94bcc6cbd3cc332c63c50949f9053e5d
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions