commit | 6661575791ea87bbe990ca1ffc5c20701bffa2e3 | [log] [tgz] |
---|---|---|
author | Charles Chen <charlesccchen@google.com> | Mon Apr 13 09:44:04 2020 +0000 |
committer | Charles Chen <charlesccchen@google.com> | Mon Apr 27 16:37:46 2020 +0800 |
tree | cbdec94320a31018d05d6d0d08ef58e1348f1d16 | |
parent | 4bf358fe391c8a1076dd1eed725ffdfd0615a5de [diff] |
Fix DecorView error about non-visual context This error showed because DecorContext uses application context to get WindowManager. This CL changes to use PhoneWindow to obtain WindowManager instance. Also refactor ctr to obtain context from PhoneWindow. Bug: 152806048 Test: manual - enable strict mode and check the error log not shown. Test: atest DecorContextTest Test: atest MemoryTests#testActivityRecreation Change-Id: I1d416b9cdb015c9bc3553571041f3b14bb9da5da