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: tiansiming [田思明] <tiansiming@xiaomi.com>
This commit is contained in:
@@ -291,7 +291,10 @@ public class Dialog implements DialogInterface, Window.Callback,
|
||||
if (mWindow.hasFeature(Window.FEATURE_ACTION_BAR)) {
|
||||
mWindow.invalidatePanelMenu(Window.FEATURE_ACTION_BAR);
|
||||
}
|
||||
mDecor.setVisibility(View.VISIBLE);
|
||||
if (mDecor.getVisibility() != View.VISIBLE) {
|
||||
mDecor.setVisibility(View.VISIBLE);
|
||||
sendShowMessage();
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user