am 23819e7e: Merge "Make ListView\'s illegal state exception more helpful" into klp-dev

* commit '23819e7e5d3b5e2c5d4b47b1a8133bc950e1eb82':
  Make ListView's illegal state exception more helpful
This commit is contained in:
Alan Viverette
2013-09-10 13:08:07 -07:00
committed by Android Git Automerger

View File

@@ -1555,8 +1555,9 @@ public class ListView extends AbsListView {
} 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. [in ListView(" + getId() + ", " + getClass()
+ "your adapter is not modified from a background thread, but only from "
+ "the UI thread. Make sure your adapter calls notifyDataSetChanged() "
+ "when its content changes. [in ListView(" + getId() + ", " + getClass()
+ ") with Adapter(" + mAdapter.getClass() + ")]");
}