Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d54529c4 authored by Alan Viverette's avatar Alan Viverette Committed by Android Git Automerger
Browse files

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

* commit '23819e7e':
  Make ListView's illegal state exception more helpful
parents 487a8fc9 23819e7e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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() + ")]");
            }