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

Skip to content
Commit 0f413471 authored by Lucas Silva's avatar Lucas Silva
Browse files

Refactor communal scene logic to standalone interactor

This moves the logic out of CommunalInteractor and into a standalone
interactor. This simplifies CommunalInteractor, and allows for the new
interactor to be injected into code which would otherwise cause
dependency cycles.

This change doesn't move all existing tests. This will be done in a
follow-up change to move the unit tests to a separate file.

This change does have one minor change - we remove the communalAvailable
check when calculating the scene. This is safe because the scene now
comes directly from STL. So if communal isn't available, its guaranteed
to be reset back to Blank.

Test: atest SystemUiRoboTests
Flag: com.android.systemui.glanceable_hub
Bug: 331591373
Change-Id: I5be1d0483732ff0cbabfddd2095f80c58e42c6a5
parent 9bb9e1ad
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