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

Skip to content
Commit c360a6d3 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Chips] Update call chip to use icon from notification.

This changes updates the ongoing phone call chip to use the
`Notification.getSmallIcon()` as the icon inside the chip, instead of
hard-coding it to be a phone icon.

This includes:
1) For each notification, creating a new `statusBarChipIcon` in addition
   to creating the other location-specific icons (status bar, shelf,
   aod)
2) Updating the paddings in the chip layout, since the notification icon
   is required to come with its own padding

Bug: 354930838
Flag: NONE required for imminent release

Test: Start call without timer -> verify chip has icon only, icon is
centered
Test: Start ongoing call -> verify chip has icon and time
Test: Chip UI at various font and display sizes
Test: Theme changes (chip text updates to both white and black
correctly)
Test: Accessibility for chip

Test: Enable com.android.systemui.status_bar_screen_sharing_chips flag
-> verify call and screen chips still work okay (the paddings are off
but general functionality still works)

Test: atest OngoingCallControllerTest

Change-Id: Id7ad51ad3a590e6556987cba4f2639870c422f92
parent 92c92ce3
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