Loading
viewcapture: fix NPE (WindowListener#mRoot)
Threads are scheduling accesses to WindowListener#mRoot to be performed
on the UI thread, but WindowListener#mRoot might become null by the time
the UI thread accesses it. This CL should cover such cases.
Bug: 375005884
Bug: 386904682
Flag: EXEMPT bugfix
Test: enable viewcapture on sysui windows and check the NPE \
doesn't happen anymore on presubmit
Change-Id: I6f06fe1c6d92ea6606334fb65e5189f9a6dc4d51