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

关于dialog不能被用户触发关闭 #132

Closed
HappyImp opened this issue Dec 26, 2017 · 4 comments
Closed

关于dialog不能被用户触发关闭 #132

HappyImp opened this issue Dec 26, 2017 · 4 comments

Comments

@HappyImp
Copy link

Tipdialog不能通过用户触发返回键关闭,这样的体验很不好,有时候网络状态不好的时候,用户不愿等待那么长时间,要返回退出,却因为dialog不得不杀死应用。

@cgspine
Copy link
Collaborator

cgspine commented Dec 26, 2017

好的,目前设置了setCancelable 为 true,我改一下

@HappyImp
Copy link
Author

@cgspine 我在baseactivity做了监听,让dialog与activity一起销毁

@cgspine
Copy link
Collaborator

cgspine commented Dec 26, 2017

目前也不要做监听吧,直接在构造出TipDialog后调用tipDialog.setCancelable(true)就可以了。

@HappyImp
Copy link
Author

好的,知道了

cgspine added a commit that referenced this issue Jan 12, 2018
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