Merge change 21073

* changes:
  Log more information to help us debug which ListView has IllegalStateException in monkey tests. (bug 1995826)
This commit is contained in:
Android (Google) Code Review
2009-08-13 23:41:58 -07:00

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);