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

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

[SB][Screen Chips] Refactor OngoingCallRepo to use model instead of boolean.

In order to show the ongoing call chip with all the other new chips, we
need some additional information from the OngoingCallRepository besides
just "whether there's a call or not". This updates the repo to return a
model representing the call state instead of just a boolean.

Also, it seems OngoingCallController + Test needed a full reformatting
:D

Bug: 332662551
Test: atest OngoingCallControllerTest OngoingCallRepositoryTest
StatusBarModeRepositoryImplTest
Test: With com.android.systemui.status_bar_screen_sharing_chips flag
off, start an ongoing call -> verify old chip shows up. Open a
fullscreen app and verify the status bar still appears with a
semi-transparent background (that's the only thing the
OngoingCallRepository is actually used for at the moment)
Flag: NONE Refactor that would be more confusing if it was flag-guarded

Change-Id: I35bd5fd730797b42214e6aa2cc034dc5da7d96e5
parent d26363c4
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