Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b38e958 authored by tiansiming [田思明]'s avatar tiansiming [田思明] Committed by android-build-merger
Browse files

Merge "Modify isShowing method in Dialog"

am: 46be1f15

Change-Id: I9d1cd55d51c37571d199ebbb5975f490e0969a92
parents abcf07af 46be1f15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }

    /**