The content of the adapter has changed but ListView did not receive a notification

时间:2022-01-05 04:30:37
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. Make sure your adapter calls notifyDataSetChanged() when its content changes. [in ListView(, class android.widget.ListView) with Adapter(class com.tongyan.guangzhou.subway.inspect.act.table.TaskCheckMainAct$FacilityTaskCheckAdapter)]
at android.widget.ListView.layoutChildren(ListView.java:)
at android.widget.AbsListView.onTouchUp(AbsListView.java:)
at android.widget.HwAbsListView.onTouchUp(HwAbsListView.java:)
at android.widget.AbsListView.onTouchEvent(AbsListView.java:)
at android.view.View.dispatchTouchEvent(View.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:)
at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:)
at com.android.internal.policy.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:)
at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:)
at android.app.Activity.dispatchTouchEvent(Activity.java:)
at com.android.internal.policy.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:)
at android.view.View.dispatchPointerEvent(View.java:)
at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:)
at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:)
at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:)
at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:)
at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:)
at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:)
at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:)
at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:)
at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:)
at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:)
at android.os.Looper.loop(Looper.java:)
at android.app.ActivityThread.main(ActivityThread.java:)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:)