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

Commit d5041211 authored by Caitlin Shkuratov's avatar Caitlin Shkuratov
Browse files

[SB][Chips] Fix up the ShortTimeDelta Compose Chips.

Two changes:
1) I only just realized that the ShortTimeDelta time is in
   currentTimeMillis units instead of elapsedRealtimeUnits, so I updated
   the Compose view to use currentTimeMillis as the baseline.
2) Update TimeRemainingState to use the right duration from the outset
   so that the chip doesn't flash "now" for a brief moment.

Fixes: 400784488
Bug: 372657935
Flag: com.android.systemui.status_bar_chips_modernization
Test: Trigger notif chip with time in the future -> verify chip shows
the time delta correctly. Verify with ChipsModernization both off and on

Change-Id: Id1729675205b7add3275527f94999b25cda5c388
parent 96b5ce2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment