summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorchaviw <chaviw@google.com>2018-04-23 13:34:36 -0700
committerchaviw <chaviw@google.com>2018-04-27 18:04:00 -0700
commita213d306d556a140bafe8079b00b3654c62b534c (patch)
tree4bc96477cca504eac6a248637e628db8a0131a8a /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta8c840c46d63ee5d5c837de8b0b3b41e00f0ecb8 (diff)
Update DecorContext's Resource cache when calling getResources.
DecorContext is created with the resources from the activity. However, the resources in DecorContext may not get updated properly ResourcesManager if the original resource object it's pointing to isn't updated by ResourcesManager. Because of this, resources for the DecorView can be incorrect when the activity's resources are updated. This change updates the DecorContext's resources with the activity's resources when getResources is called to ensure they get properly updated. This fixes the issue where windowing mode was incorrect when determining what the window elevation should be. It was incorrectly getting full screen when it should have gotten pinned. This was preventing surface insets from getting set on the WM side, so PIP windows didn't get shadows. Change-Id: I5af2364f81b167e3732811d7413554d035c4a021 Test: PIP has shadows Fixes: 78214575
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions