timroes / EnhancedListView

[DEPRECATED] An Android ListView with enhanced functionality (e.g. Swipe To Dismiss or Undo)
Other
463 stars 147 forks source link

IllegalStateException during "stress test" #55

Open slisznia opened 10 years ago

slisznia commented 10 years ago

I'm able to easily reproduce the following exception when quickly deleting items from the listview. I have the "delete on click" enabled so deleting is much easier compared to "swipe to delete":

E/AndroidRuntime( 1832): java.lang.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(2131165219, class de.timroes.android.listview.EnhancedListView) with Adapter(class com.pushcoin.app.bitsypos.adapter.CartEntryArrayAdapter)] E/AndroidRuntime( 1832): at android.widget.ListView.layoutChildren(ListView.java:1544) E/AndroidRuntime( 1832): at android.widget.AbsListView$CheckForTap.run(AbsListView.java:2963) E/AndroidRuntime( 1832): at android.os.Handler.handleCallback(Handler.java:725) E/AndroidRuntime( 1832): at android.os.Handler.dispatchMessage(Handler.java:92) E/AndroidRuntime( 1832): at android.os.Looper.loop(Looper.java:137) E/AndroidRuntime( 1832): at android.app.ActivityThread.main(ActivityThread.java:5063) E/AndroidRuntime( 1832): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 1832): at java.lang.reflect.Method.invoke(Method.java:511) E/AndroidRuntime( 1832): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) E/AndroidRuntime( 1832): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) E/AndroidRuntime( 1832): at dalvik.system.NativeStart.main(Native Method) W/ActivityManagerService( 364): Force finishing activity com.pushcoin.app.bitsypos/.activity.ShoppingActivity