commit | 837e2766950f5f5456e6b780f536b4725d944dac | [log] [tgz] |
---|---|---|
author | Siarhei Vishniakou <svv@google.com> | Thu Feb 07 12:59:00 2019 -0800 |
committer | Siarhei Vishniakou <svv@google.com> | Tue Feb 12 16:32:23 2019 -0800 |
tree | 390ba88189f3459711408a40e52fa4f1721e3409 | |
parent | 342c633ce0e1fb5719e381c8f6df625b0e4b57d6 [diff] |
Ensure looper is non-null in DisplayManagerGlobal Looper.myLooper() can return null, according to the docs. But in the DisplayManagerGlobal code, this method is assumed to return non-null looper. To ensure that a looper is available, use the main thread looper if the looper for the current thread is null. Test: atest cts.ViewGroupTest Bug: 123592612 Change-Id: I80aaf5703e62837720395bfac4d95144cd6ab9f0