Make sure the icon database is created in the UI thread.

The monkey can launch the activity before the icon database has been created. If
getInstance() is called in a different thread, a looper will not exist.

I thought about forcing WebIconDatabase to use the main looper but that would
limit the use of WebIconDatabase to the main thread.

Bug: 2524758
Change-Id: Iebc1bb6021b084e643e9b180602f999b0ee30a5d
1 file changed