sushiwu / fanfoudroid

Automatically exported from code.google.com/p/fanfoudroid
0 stars 0 forks source link

MergetAdapter导致的FC #65

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
看错误信息是说数据在后台更新了但是前台没刷新。

E/AndroidRuntime( 1352): FATAL EXCEPTION: main
E/AndroidRuntime( 1352): java.lang.IllegalStateException: The content of the ada
pter has changed but ListView did not receive a notification. Make sure the cont
ent of your adapter is not modified from a background thread, but only from the
UI thread. [in ListView(2131361865, class android.widget.ListView) with Adapter(
class com.commonsware.cwac.merge.MergeAdapter)]
E/AndroidRuntime( 1352):        at android.widget.ListView.layoutChildren(ListVi
ew.java:1510)
E/AndroidRuntime( 1352):        at android.widget.AbsListView.onLayout(AbsListVi
ew.java:1273)
E/AndroidRuntime( 1352):        at android.view.View.layout(View.java:7192)
E/AndroidRuntime( 1352):        at android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1254)
E/AndroidRuntime( 1352):        at android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:1130)
E/AndroidRuntime( 1352):        at android.widget.LinearLayout.onLayout(LinearLa
yout.java:1047)
E/AndroidRuntime( 1352):        at android.view.View.layout(View.java:7192)
E/AndroidRuntime( 1352):        at android.widget.FrameLayout.onLayout(FrameLayo
ut.java:338)
E/AndroidRuntime( 1352):        at android.view.View.layout(View.java:7192)
E/AndroidRuntime( 1352):        at android.widget.LinearLayout.setChildFrame(Lin
earLayout.java:1254)
E/AndroidRuntime( 1352):        at android.widget.LinearLayout.layoutVertical(Li
nearLayout.java:1130)
E/AndroidRuntime( 1352):        at android.widget.LinearLayout.onLayout(LinearLa
yout.java:1047)
E/AndroidRuntime( 1352):        at android.view.View.layout(View.java:7192)
E/AndroidRuntime( 1352):        at android.widget.FrameLayout.onLayout(FrameLayo
ut.java:338)
E/AndroidRuntime( 1352):        at android.view.View.layout(View.java:7192)
E/AndroidRuntime( 1352):        at android.view.ViewRoot.performTraversals(ViewR
oot.java:1141)
E/AndroidRuntime( 1352):        at android.view.ViewRoot.handleMessage(ViewRoot.
java:1860)
E/AndroidRuntime( 1352):        at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 1352):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 1352):        at android.app.ActivityThread.main(ActivityThrea
d.java:3839)
E/AndroidRuntime( 1352):        at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 1352):        at java.lang.reflect.Method.invoke(Method.java:5
07)
E/AndroidRuntime( 1352):        at com.android.internal.os.ZygoteInit$MethodAndA
rgsCaller.run(ZygoteInit.java:841)
E/AndroidRuntime( 1352):        at com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:599)
E/AndroidRuntime( 1352):        at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by ch.lin...@gmail.com on 22 Mar 2011 at 3:32

GoogleCodeExporter commented 8 years ago
在什么情况下出现的这个bug?

Original comment by PHOENIX....@gmail.com on 22 Mar 2011 at 4:20

GoogleCodeExporter commented 8 years ago
我今天是开着没做任何事,突然就这样了。
回去我也帮你review一下这段代码吧。

Original comment by ch.lin...@gmail.com on 22 Mar 2011 at 4:23

GoogleCodeExporter commented 8 years ago
should be fixed @ a7a9aee53a1a

Original comment by ch.lin...@gmail.com on 23 Mar 2011 at 9:15