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

Commit d8a7fe45 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 21073

* changes:
  Log more information to help us debug which ListView has IllegalStateException in monkey tests. (bug 1995826)
parents 69798770 3940f2df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);