summaryrefslogtreecommitdiff
path: root/tools/aapt2/ResourceParser.cpp
diff options
context:
space:
mode:
author ryanlwlin <ryanlwlin@google.com> 2022-01-17 11:46:15 +0800
committer ryanlwlin <ryanlwlin@google.com> 2022-01-20 14:41:16 +0800
commite216d2dff090635afcc8474c7ebb3ac313beb5ef (patch)
tree7e4014a5f49c45228766a65cdbe83cc573ad6a53 /tools/aapt2/ResourceParser.cpp
parent189f69261ffcfd6e25bb892d007dcc29e47b7b10 (diff)
Fix incorrect magnification window size when the dvice is folded
When the foldable is folded /unfolded, we will refetch the display size to compute the appropriate the window size. The signal of display size changed is from onConfigurationChanged which is invoked by Application context. However, we get the display size from the WindowContxt. To fix it, we register the callback with the WindowContext based on the view visiblty, and update the configuration related values before showing the window. Test: manual test atest com.android.systemui.accessibility Bug: 213958569 Bug: 214318642 Change-Id: Ic98f782f98b9c29f58d08e064985da731e13aa93
Diffstat (limited to 'tools/aapt2/ResourceParser.cpp')
0 files changed, 0 insertions, 0 deletions