开发者

Checking for other AlertDialogs in an Activity?

开发者 https://www.devze.com 2023-01-19 10:27 出处:网络
开发者_JAVA技巧How do I check whether there are any AlertDialogs on the screen programmatically?You could use myAlertDialog.isShowing(); to get a boolean of if it is showing and then do something with

开发者_JAVA技巧How do I check whether there are any AlertDialogs on the screen programmatically?


You could use myAlertDialog.isShowing(); to get a boolean of if it is showing and then do something with that information. Not exactly what you were looking for but maybe a long, convoluted work around...?


AFAIK, This can't be done in Android.

0

精彩评论

暂无评论...
验证码 换一张
取 消