summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Shawn Lin <shawnlin@google.com> 2022-09-07 18:19:33 +0800
committer Shawn Lin <shawnlin@google.com> 2022-09-20 13:21:26 +0000
commit808e22eac10d77ab695f47a786607d1e6c0cc3de (patch)
treea2184bb3a258c8b979218bedfb80f1f33421a67d /libs/androidfw/AssetsProvider.cpp
parent1d073c96000c1049ce489ad46ba62ca70c0b239c (diff)
Fix flicker when swiching resolution change
After the "Local Layout"[1] is enabled, the client can compute its layout on its own. If we update cutout in the Display callback(server side), it would have a timing issue that we draw the cutout(latest from server) in the old layout(not being updated yet in client) which would cause flicker. We should only update cutout in client side callback like configuration change to make sure it syncs with the current layout attributes in client side. For rounded corner part, we don't need to reload drawable everytime the config is changed. Only size update is needed. [1]:If9488ffc84dc5e2af106acfae425a854fb7407a2 Bug: 228284551 Bug: 244693677 Test: 1. Go Settings-> Display-> Screen resolution 2. Switch between FHD <-> QHD and no flickering Test: atest ScreenDecorationsTest RoundedCornerResDelegateTest Change-Id: Idd45af5aa2b9419eb91994eb2071e5be616204b7
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions