Merge "Modify isShowing method in Dialog"

This commit is contained in:
Treehugger Robot
2018-04-04 18:39:38 +00:00
committed by Gerrit Code Review

View File

@@ -264,7 +264,7 @@ public class Dialog implements DialogInterface, Window.Callback,
* @return Whether the dialog is currently showing.
*/
public boolean isShowing() {
return mShowing;
return mDecor == null ? false : mDecor.getVisibility() == View.VISIBLE;
}
/**