summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jacky Wang <jiannan@google.com> 2025-01-20 21:05:56 +0800
committer Jacky Wang <jiannan@google.com> 2025-01-21 07:43:36 +0800
commita59f9fb082afd0a719f9e5382329a6322dd90cc0 (patch)
treec50e48658f61ef6184187d0a25f6829356f0640d /libs/androidfw/StringPool.cpp
parentd59304dbca293eca348c77ea3461fd6e62670806 (diff)
Fix MainSwitchPreference
This change simplifies MainSwitchPreference widget significantly and fix some issues: - Override setTitle/setSummary/etc to update UI is incorrect. Under the hood, notifyChange will be invoked when any change is detected and onBindViewHolder is triggered. All the UI binding logic must be done within onBindViewHolder. - The listener is added to MainSwitchBar but never be removed, which will cause weird issue (e.g. ag/3645453) when view holder is reused. Bug: 391092187 Flag: EXEMPT library Test: atest&manual Change-Id: I4fc5ad382253c7dade1165487142078e56164941
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions