Merge "Merge "Modify isShowing method in Dialog" am: 46be1f15af am: 4b38e9587d" into pi-dev-plus-aosp

This commit is contained in:
Android Build Merger (Role)
2018-04-04 19:59:46 +00:00
committed by Android (Google) 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;
}
/**