Merge "Modify isShowing method in Dialog"

am: 46be1f15af

Change-Id: I9d1cd55d51c37571d199ebbb5975f490e0969a92
This commit is contained in:
tiansiming [田思明]
2018-04-04 12:47:13 -07:00
committed by android-build-merger

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;
}
/**