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

返回键异常会导致无响应 #3

Open
luoqqsh opened this issue Jun 22, 2017 · 0 comments
Open

返回键异常会导致无响应 #3

luoqqsh opened this issue Jun 22, 2017 · 0 comments

Comments

@luoqqsh
Copy link

luoqqsh commented Jun 22, 2017

@OverRide
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
mQuitDialog.show();
}
return super.onKeyDown(keyCode, event);
}
比如mQuitDialog这个对话框为空,就会导致程序阻塞,无响应
提示NeverCrash无响应,要将其关闭吗?
然后就无限阻塞下去

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