summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Alejandro Nijamkin <nijamkin@google.com> 2022-10-03 14:24:13 -0700
committer Ale Nijamkin <nijamkin@google.com> 2022-10-05 00:55:27 +0000
commitd544909970e984e42547d67b405e4c19dd6d74e3 (patch)
tree646216461b299712a3a770e7ddd96b74e3cd8d93 /libs/androidfw/StringPool.cpp
parent37f4b300c66fe893f039a38b56b5deb1b6e0c6a3 (diff)
Fixes bug in user switcher bouncer dropdown
The bug was caused by the blind readding of header and footer views to the ListView that backs the dropdown popup menu. The bug pre-existed the refactoring work but was hidden because there were fewer updates being sent to the UI. The bug means that, if the bouncer dropdown is opened quickly after a user switch event, the dropdown will visually have larger gaps above and below its items. The fix is simply to check whether we've already added a header and footer to the list view before adding them again. Bug: 246631653 Test: the bug no longer occurs after the fix Change-Id: I58d307d79a0c7804636f145df22fe3e8f8e134fe
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions