Skip to content

Instantly share code, notes, and snippets.

@robUx4
Created November 14, 2013 10:01
Show Gist options
  • Save robUx4/7464327 to your computer and use it in GitHub Desktop.
Save robUx4/7464327 to your computer and use it in GitHub Desktop.
AppCompat crash in 2.3.6
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(2131230783, class android.support.v7.internal.view.menu.ExpandedMenuView) with Adapter(class android.support.v7.internal.view.menu.MenuAdapter)]
at android.widget.ListView.layoutChildren(ListView.java:1535)
at android.widget.AbsListView.onTouchModeChanged(AbsListView.java:2257)
at android.view.ViewTreeObserver.dispatchOnTouchModeChanged(ViewTreeObserver.java:591)
at android.view.ViewRoot.ensureTouchModeLocally(ViewRoot.java:2194)
at android.view.ViewRoot.performTraversals(ViewRoot.java:896)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1949)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3691)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
at dalvik.system.NativeStart.main(Native Method)
@chrisbanes
Copy link

This one has already been fixed internally.

@d4rken
Copy link

d4rken commented Dec 25, 2013

How did you fix it?

@bit-world
Copy link

I have same problem. How did you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment