Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 4c7ac16f authored by Julia Tuttle's avatar Julia Tuttle
Browse files

CallStyle: Center icon with label on action buttons

When NotificationActionListLayout stretches action buttons to fit their
share of the available width, TextView centers the *label* but leaves
the *icon* at the start edge of the button.

We'd like the icon and the label to be centered together, so add a
"glue" method that will include the icon in the label as an ImageSpan.

Use it in Notification.CallStyle to fulfill the new CallStyle action
button layout.

Bug: 268733030
Test: manual; sUseNewActionLayout = true, post CallStyle with Notify2
Change-Id: Idb3fdff9a968cd9d95baafc6ca43f3aacba84d24
parent bc8b6043
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment