commit | aa287c4e6f72e057e84455a9da05324e03705e62 | [log] [tgz] |
---|---|---|
author | Yiyi Shen <[email protected]> | Thu Aug 01 16:39:49 2024 +0800 |
committer | Yiyi Shen <[email protected]> | Mon Aug 05 18:38:47 2024 +0800 |
tree | 1a49fa266c653d11c5713ac8ddfd0cfd287a0ccb | |
parent | 409d712ec80100bdd51c11a510b94f08c55f3870 [diff] |
[Audiosharing] Fix race condition for profile ready and flow collect Since we can not garantee the order of profile ready and flow collect, there is some cases AudioSharingRepository#inAudioSharing is always flowOf(false) and volumeMap is always flowOf(emptyMap()) if the profile is not available when flow is collected. Test: atest Bug: 336716411 Flag: com.android.settingslib.flags.volume_dialog_audio_sharing_fix Change-Id: Idfc4f68c381a875737b718dd39877d15bcfc69bd