am cc19a53d: Fix 2271080 - .lang.IllegalArgumentException: no dialog with id 1 was ever shown via Activity#showDialog on CreateShortcut
Merge commit 'cc19a53d6149491e58d2c2a749345a70b7492ec8' into eclair-mr2
* commit 'cc19a53d6149491e58d2c2a749345a70b7492ec8':
Fix 2271080 - .lang.IllegalArgumentException: no dialog with id 1 was ever shown via
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index fb59017..52d89c3e 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1908,7 +1908,11 @@
}
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
+ }
}
/**