Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

连续show两次,报错 #20

Open
myface-wang opened this issue Dec 8, 2016 · 1 comment
Open

连续show两次,报错 #20

myface-wang opened this issue Dec 8, 2016 · 1 comment

Comments

@myface-wang
Copy link

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
at android.view.ViewGroup.addViewInner(ViewGroup.java:4310)
at android.view.ViewGroup.addView(ViewGroup.java:4146)
at android.view.ViewGroup.addView(ViewGroup.java:4118)
at com.mingle.sweetpick.CustomDelegate.show(CustomDelegate.java:124)
at com.mingle.sweetpick.SweetSheet.show(SweetSheet.java:115)
at com.acgcode.template.MainActivity$1.onClick(MainActivity.java:81)
at android.view.View.performClick(View.java:5207)
at android.view.View$PerformClick.run(View.java:21177)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5458)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

应该是控件内部没有执行完,需要考虑执行完才能进行下一次show

@myface-wang
Copy link
Author

需要增加对执行完成的监听(show完成,dismiss完成)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant