commit | eb2c6935518e781ca0651bca69ddb2e306daa05a | [log] [tgz] |
---|---|---|
author | Mark Renouf <mrenouf@google.com> | Fri Feb 16 13:38:30 2024 -0500 |
committer | Mark Renouf <mrenouf@google.com> | Fri Feb 16 13:38:30 2024 -0500 |
tree | 6ed021ba42bad49604bb7674d4cb34ef4ecb0f12 | |
parent | cfb60519c7cd3de3e4a0041f73a7c344627eb389 [diff] |
Change UserInteractor availability interface This does the following: 1) Keeps availability information per-Profile, and not per-Type because there isn't a requirement to enforce a single instance per type at this layer, and this requirement may come along in the future. 2) changes `fun isAvailable(Profile.Type: Flow<Boolean>` to `val availability: Flow<Map<Profile, Boolean>>` which is easier to consume downstream as a StateFlow without additional bookeeping of maintaining individual flows. Changes can be easily processed by using a runningFold and taking the difference in the two maps. Test: atest UserInteractorTest Bug: n/a Flag: n/a (code is not yet live) Change-Id: I8605c42bead70b4bf41fdf89c195311b85938b1b
IntentResolver
provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder