diff options
author | Charles Chen <charlesccchen@google.com> | 2020-03-11 10:18:28 +0800 |
---|---|---|
committer | Charles Chen <charlesccchen@google.com> | 2020-03-30 11:24:48 +0800 |
commit | 828c4989043eaaa8062c1a863cdabafc9690ce9b (patch) | |
tree | ee1657eaa41ff08ac6420de23025884eb3fc3afe /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 2d50b57ced4a1e51180e27dda583809ced5905eb (diff) |
Fix DecorView error about non-visual context
This error showed because DecorContext uses application context
to get WindowManager. This CL changes to use context to do so.
Also rename fields in DecorContext because we actually can pass any
context in "activityContext."
Note that most cases of misuse WindowManager is covered by [1].
We can guarantee that WindowManager can be obtained by mContext.
[1]:I52aa0c4a02b7da018aa10f1473e1616564296e41
Bug: 150632074
Test: manual - enable strict mode and check the error log not shown.
Test: atest DecorContextTest
Change-Id: I558a2819e5928a802b897a130cfc3262115b9935
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions