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

Commit 664e4158 authored by Chaohui Wang's avatar Chaohui Wang
Browse files

Introduce configurable dispatcher in SpaEnvironment

SPA components now use a default dispatcher provided by
`SpaEnvironment.defaultDispatcher`. This allows for easier
customization and testing. `RestrictedBaseSwitchPreference`,
`BroadcastReceiverFlow`, and `RestrictedSwitchPreferencePresenter`
have been updated to use this new dispatcher via `SpaDispatchers`.

Other changes:
- Make SpaIntent.KEY_DESTINATION public by removing @VisibleForTesting
- Update test target SDK to 36.
- Explicit ignore `trySend` return value in `BroadcastReceiverFlow`
  by assigning return value to unused.

Bug: 422439682
Flag: EXEMPT refactor
Test: unit tests still pase
Change-Id: Ifc97830b0d863454645707fe61e2e0720bbfb503
parent 3f3b78ce
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