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

Commit 690b3690 authored by tiansiming [田思明]'s avatar tiansiming [田思明]
Browse files

Let sendShowMessage called from hide to show



Dialog's onShow callback is not called from hide to show.
Detailed information is written in the bug link.

Bug: 73147112
Test: Manual test with the demo

Change-Id: I1d32d9695c18a206b661a1bd7c0dba25dbfbf28b
Signed-off-by: default avatartiansiming [田思明] <tiansiming@xiaomi.com>
parent 1b5703f9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -291,7 +291,10 @@ public class Dialog implements DialogInterface, Window.Callback,
                if (mWindow.hasFeature(Window.FEATURE_ACTION_BAR)) {
                    mWindow.invalidatePanelMenu(Window.FEATURE_ACTION_BAR);
                }
                if (mDecor.getVisibility() != View.VISIBLE) {
                    mDecor.setVisibility(View.VISIBLE);
                    sendShowMessage();
                }
            }
            return;
        }