summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Yiyi Shen <yiyishen@google.com> 2024-09-29 19:28:20 +0800
committer Yiyi Shen <yiyishen@google.com> 2024-10-10 11:48:55 +0800
commitee1966c23ffa75c99941c06de91955352f4397c4 (patch)
tree7114a3094c1e3bee9189b9fecd039ad0dd8475fb /libs/androidfw/ObbFile.cpp
parentb02f8680ff3e0f109fcad0aa9125c7109c584931 (diff)
[Audiosharing] Fix the primary buds auto pick logic in hysteresis mode
In hysteresis mode, we will receive plenty of onReceiveStateChanged, e.g. play and pause music, system sounds... The onReceiveStateChanged with BIS >= 1, as a replacement of onSourceAdded, will trigger auto pick logic for primary headset. In some cases, when user change primary headset in Call audio section on audio sharing page under the hysteresis mode, the system sound will later trigger a onReceiveStateChanged with BIS >= 1, then the auto pick logic (always pick the earliest connected headset) is possible to override the user change. Thus here we have to save the user preferred primary headset in SettingsProvider and skip the auto pick if user has made changes. Also add to code to do nothing for the work profile. Test: atest Bug: 355222285 Flag: com.android.settingslib.flags.audio_sharing_hysteresis_mode_fix Change-Id: I49e1ef69743fff55e7a558d5076e34ae8c9d11ec
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions