Log more information to help us debug which ListView has

IllegalStateException in monkey tests. (bug 1995826)
This commit is contained in:
Owen Lin
2009-08-13 15:21:16 +08:00
parent ef654bdd5b
commit 3940f2df36

View File

@@ -1428,7 +1428,8 @@ public class ListView extends AbsListView {
throw new IllegalStateException("The content of the adapter has changed but "
+ "ListView did not receive a notification. Make sure the content of "
+ "your adapter is not modified from a background thread, but only "
+ "from the UI thread.");
+ "from the UI thread. [in ListView(" + getId() + ", " + getClass()
+ ") with Adapter(" + mAdapter.getClass() + ")]");
}
setSelectedPositionInt(mNextSelectedPosition);