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

2.10.0版本存在主动调用show()不能弹出的问题 #1219

Open
Lyphy999 opened this issue Jul 9, 2024 · 2 comments
Open

2.10.0版本存在主动调用show()不能弹出的问题 #1219

Lyphy999 opened this issue Jul 9, 2024 · 2 comments

Comments

@Lyphy999
Copy link

Lyphy999 commented Jul 9, 2024

XPopup版本
如2.10.0

手机系统和型号
华为Mate20 Android 10

描述你的问题
在一个Activity中,定义了某个 继承自 BottomPopupView,
经排查,得出问题出现的原因为:
PopupInfo 中 public boolean enableDrag = true; 默认开启了手势滑动、拖拽,如果滑动导致 dismiss 后,再次代码调用已有对象的show(),因为状态不对,导致不能 show()出来,可见debug时的截图:
image

@Lyphy999
Copy link
Author

Lyphy999 commented Jul 9, 2024

image

@Tang3210
Copy link

Tang3210 commented Aug 2, 2024

我也遇到了,是重复调用 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

2 participants