Dismiss a dialog if dimissed right after calling show().

Bug #2508607

Change-Id: Id1b3afcaabf700386f70a46bc2401154575149aa
This commit is contained in:
Romain Guy
2010-03-16 11:40:40 -07:00
parent 82ce6f1c8e
commit 08a4ac3999

View File

@@ -266,7 +266,7 @@ public class Dialog implements DialogInterface, Window.Callback,
}
private void dismissDialog() {
if (mDecor == null || !mShowing || mDecor.getWindowToken() == null) {
if (mDecor == null || !mShowing) {
return;
}