Skip to content
Commit 837e2766 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

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
parent 342c633c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment