summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Lyn Han <lynhan@google.com> 2022-05-05 17:22:30 -0500
committer Lyn Han <lynhan@google.com> 2022-05-10 14:00:50 -0700
commit6b5a9fd911e88b5fb5538aef19cfe964402e1f1d (patch)
treec59f4750e214f4c85bef0a198fcf0816210da2a2 /libs/androidfw/StringPool.cpp
parent1c88a2be528fb802b387fb67188cf27400e14928 (diff)
Fix one-icon shelf flicker after lockscreen swipe-down-and-let-go
How the flicker happens: - As we return to lockscreen after swipe down, fractionToShade decreases, so sectionGap decreases. - In NSSL#setFractionToShade, we don't immediately update stackHeight with the smaller sectionGap, so the requested children update works with the bigger stackHeight from before. - However, StackScrollAlgorithm#updateChild uses the updated (smaller) sectionGap, resulting in more room such that the last notification shows partially above the shelf. - The shelf no longer has a full view so it hides. This change adds the missing call to updateContentHeight after fractionToShade changes. Bug: 222123657 Test: NotificationStackScrollLayoutTest Test: on lockscreen, have one icon in shelf, swipe down and let go => shelf and last notification do not flicker Change-Id: I59a6564b73c1acf15a046db403a185bdaaa5fafe
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions