summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Chaohui Wang <chaohuiw@google.com> 2023-02-13 13:55:44 +0800
committer Chaohui Wang <chaohuiw@google.com> 2023-02-13 13:56:26 +0800
commit87d5631d1d7bf9d1848de292965548da5763d240 (patch)
treee93ba982f5116fbf13ed498dd62163b511f8ee99 /libs/androidfw/StringPool.cpp
parenta087b29ea586af9a8e25918ca365a5bf8c52ecdf (diff)
Fix App List pages flickers
When there is a package change event happens on the device, the page is auto refreshed, which caused the flickers. Before this change, the app list item will be re-create for every app list refresh, because System.identityHashCode(this) is part of item key. System.identityHashCode(this) is added to fix an issue in the AppListSwitchItem. To fix this issue, removed remember in the AppListSwitchItem to make sure TwoTargetSwitchPreference always has the latest values, so System.identityHashCode(this) no loner need to be part of item key. By removing System.identityHashCode(this) from the item key, the flicker issue is fixed. Fix: 267699436 Test: Manually with Settings Change-Id: Iabf0c56271c5486272c921a4b4020f9e3d2b984b
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions