Fix 2271080 - .lang.IllegalArgumentException: no dialog with id 1 was ever shown via

Activity#showDialog on CreateShortcut

I'm not sure how this can happen, but I think it's okay to just
drop the exception.  It's all just trying to clean up anyway.
This commit is contained in:
Joe Onorato
2009-11-19 14:19:17 -08:00
parent 14f122bf84
commit cc19a53d61
+5 -1
View File
@@ -1908,7 +1908,11 @@ public final class Launcher extends Activity
}
private void cleanup() {
dismissDialog(DIALOG_CREATE_SHORTCUT);
try {
dismissDialog(DIALOG_CREATE_SHORTCUT);
} catch (Exception e) {
// An exception is thrown if the dialog is not visible, which is fine
}
}
/**