summaryrefslogtreecommitdiff
path: root/java/tests
diff options
context:
space:
mode:
author 1 <mrcasey@google.com> 2023-05-09 18:08:38 +0000
committer 1 <mrcasey@google.com> 2023-05-09 18:08:38 +0000
commit5365337bba704796dfadb0f0ea251795fcfae73f (patch)
tree2f4d0cb7f009882931b95d71e2b7d427d02f15b4 /java/tests
parente83421558c82ea0838d8a2ce0637608edc6da2b7 (diff)
Allow chooser targets to use two lines
Previous behavior is that direct share would get two lines but app targets got one line for the label and one line for the sub-label. This forced truncation of labels even when no sub-label was present (see bug). This change evolves that by making the following changes: 1. Set the maxLines of the label instead of lines directly. 2. If there's no sublabel, set maxLines to 2. 3. Change the grid item's gravity so they're top-aligned (previously they were all the same height yet centered). Setting the line count directly didn't work because the compound drawable would always be drawn as if there were two lines. One subtlety here is that a row of targets that all fit within a single line will have less space between icons. Bug: 280289219 Test: atest UnbundledChooserActivityTest Test: manual review how a variety of targets render. Change-Id: Id9831a310738631c9f767827fec595117ac3a487
Diffstat (limited to 'java/tests')
0 files changed, 0 insertions, 0 deletions