diff options
| author | 2025-02-20 19:19:51 +0000 | |
|---|---|---|
| committer | 2025-02-20 11:31:23 -0800 | |
| commit | 730ba040a376554b0d06ef9a21eb0b4aac9eebde (patch) | |
| tree | 41cabc0f4cd6841c5cfb82f40887923f033cb575 /libs/androidfw/FileStream.cpp | |
| parent | 14fa66be7b22fec34d242188c359f0599a218d42 (diff) | |
"Balance" button widths in miniresolver
The previous implementation assigned too much of the extra width to
only one of the buttons, making them appear imbalanced (b/386811027).
This CL assigns the buttons equal weight in a LinearLayout, which
looks OK in all the cases I tested (by manually hacking in different
text values).
Screenshots: (ignore the missing dialog text; just from my hack)
* screenshot/B2d6hxEUie5viJs uses short placeholders on both buttons
* screenshot/9Xm9mNiVABFHeLE and screenshot/BSZ4ukpzYW2SUqL show the
effect when one of the button labels is much longer than the other
* screenshot/8z8XDQLXE4YxnqJ shows when both buttons have long labels
* screenshot/3pDaJFdDPQ8z6mm uses the real "Cancel" and "Open" labels
from b/386811027
(* screenshot/8Ygxny5ar6Be7cH shows that the dialog text was only
missing incidentally, and was restored when I removed my hack.)
Bug: 386811027
Test: (see screenshots)
Flag: EXEMPT bugfix
Change-Id: Ib6818a366a7d5257c3248a6eae4d50df971c8c21
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions