summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Yiyi Shen <yiyishen@google.com> 2024-08-01 16:39:49 +0800
committer Yiyi Shen <yiyishen@google.com> 2024-08-05 18:38:47 +0800
commitaa287c4e6f72e057e84455a9da05324e03705e62 (patch)
tree1a49fa266c653d11c5713ac8ddfd0cfd287a0ccb /api/api_test.go
parent409d712ec80100bdd51c11a510b94f08c55f3870 (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
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions