From 3940f2df36fbe6a712c88655fc78244977ebd0ab Mon Sep 17 00:00:00 2001 From: Owen Lin Date: Thu, 13 Aug 2009 15:21:16 +0800 Subject: [PATCH] Log more information to help us debug which ListView has IllegalStateException in monkey tests. (bug 1995826) --- core/java/android/widget/ListView.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/widget/ListView.java b/core/java/android/widget/ListView.java index 02a137ddff0a1..993b7cbcdb457 100644 --- a/core/java/android/widget/ListView.java +++ b/core/java/android/widget/ListView.java @@ -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);