summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Charles Chen <charlesccchen@google.com> 2022-07-13 21:32:36 +0800
committer Charles Chen <charlesccchen@google.com> 2022-07-13 21:43:31 +0800
commit7859ecee1e498a5df3961329c02b96c5a2c59a37 (patch)
tree4b14e74f01c9dcdc533a337c3ed1508ed4ad6c53 /libs/androidfw/AssetsProvider.cpp
parent0251a89274a6b4d641aa1d3d751b80b2130279b1 (diff)
Try to fix stale mDisplaySize
WM#getMaximumWindowMetrics#getBounds report max window bounds with the Configuration in Resources. However, EdgeBackGestureHandler#onConfigurationChanged counld not guarantee that WM#getMaximumWindowMetrics is updated because the configuration updates are not on the same Context, and also it Resources#getConfiguration. This CL applies the reported Configuration from #onConfigurationChanged callback to mDisplaySize directly. In this way, mDisplaySize is up-to-date with the latest configuration. Bug: 235711424 Test: manual - rotate the device dozens of times and check if mDisplaySize is updated. Change-Id: Iafeb1c580bb0c7b3680a5c32616754c00666768c
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions