summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Angela Wang <angelala@google.com> 2024-07-23 04:28:30 +0000
committer Angela Wang <angelala@google.com> 2024-07-26 03:44:47 +0000
commit4fdb9ecdf77029e7fa87b9d7868575fa03b7d939 (patch)
treefaebf40871ebc9ee310dbc604a232cd5cabb24c9 /libs/androidfw/StringPool.cpp
parentad9cfa8705c6b9ce0525e2aeaf3464ec0824d47b (diff)
Fix HearingDevicesDialogDelegateTest failed
1. Spinner.setSelection(index) in onItemSelected() callback will cause onItemSlected() callback get called again and result in an infinite loop. Remove this line to avoid this issue. 2. HapClientProfile.selectPreset() is called in onItemSelected() callback to sync the current selection to remote device. When refreshing the UI no matter on success/failure from remote, we should use Spinner.setSelection(index, false) instead of Spinner.setSelection(index) to avoid envoke onItemSelected() and HapClientProfile.selectPreset() again Flag: EXEMPT bugfix Bug: 354602601 Test: atest HearingDevicesDialogDelegateTest Change-Id: Id81c63638f13a0723e2e4c941888c485a7e497db
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions