OSDN Git Service

Make sure the icon database is created in the UI thread.
authorPatrick Scott <phanna@android.com>
Thu, 18 Mar 2010 14:51:39 +0000 (10:51 -0400)
committerPatrick Scott <phanna@android.com>
Thu, 18 Mar 2010 14:59:28 +0000 (10:59 -0400)
commit83fe6d688ef4a9eb581455152b398d577ea6514c
tree98ad40ef99038a74dbb03a3616e616b7763b5fba
parentcc9491236354dd59bffc976f6b55b86e558dc628
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
src/com/android/browser/CombinedBookmarkHistoryActivity.java