Automated import from //branches/donutburger/...@142129,142129

This commit is contained in:
Romain Guy
2009-03-24 21:30:00 -07:00
committed by The Android Open Source Project
parent 272beb6383
commit b45f124a04

View File

@@ -1393,6 +1393,11 @@ public class ListView extends AbsListView {
resetList();
invokeOnItemScrollListener();
return;
} else if (mItemCount != mAdapter.getCount()) {
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.");
}
setSelectedPositionInt(mNextSelectedPosition);