diff options
author | Vadim Caen <caen@google.com> | 2019-07-19 16:28:12 +0200 |
---|---|---|
committer | Vadim Caen <caen@google.com> | 2019-07-19 17:45:52 +0200 |
commit | 6932c77d53f67e236eb0146b5e49f53acd997e3e (patch) | |
tree | 7f2d87ad416b3ee818d58236ee25a598f8c54bd8 /startop/scripts/lib/cmd_utils.py | |
parent | 7d3306a0852a58e3a7492bcd3bd453332ae7d8d2 (diff) |
Postpone setting background when window is set.
The DecorView background is the same as the window background.
If a background is set before the DecorView's window is set,
setWindowBackground will throw an NPE.
This happens when the default theme has android:view set with a
non-null value, so the background is set within the super constructor
(in View.java) before the PhoneWindow is set in the constructor of
DecorView.
Fixes: 137764086
Test: regression test DecoreViewTest.setBackgroundWithNoWindow()
Change-Id: I3b3c31cfe50ffa7284a1b37ca4b2f864be77c838
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions