Don't crash when adding a shortcut.
authorJoe Onorato <joeo@android.com>
Fri, 19 Feb 2010 21:10:40 +0000 (13:10 -0800)
committerJoe Onorato <joeo@android.com>
Fri, 19 Feb 2010 21:34:55 +0000 (13:34 -0800)
commit3c24aca5f597f2eb90e53dce450197e2f46c2305
tree7f2042e0127a8d31156d374bcc3953510b1c5bfd
parent75dc3a9d28a184358127390329b36a5a520c212c
Don't crash when adding a shortcut.

Steps to reproduce: Menu > Add > Shortcut > Application > [any app]

E/AndroidRuntime( 1734): Caused by: java.lang.ClassCastException: com.android.launcher2.ShortcutInfo
E/AndroidRuntime( 1734):    at com.android.launcher2.Workspace.onDropExternal(Workspace.java:963)
E/AndroidRuntime( 1734):    at
com.android.launcher2.Workspace.addApplicationShortcut(Workspace.java:903)
E/AndroidRuntime( 1734):    at
com.android.launcher2.Launcher.completeAddApplication(Launcher.java:669)
E/AndroidRuntime( 1734):    at com.android.launcher2.Launcher.onActivityResult(Launcher.java:371)
E/AndroidRuntime( 1734):    at android.app.Activity.dispatchActivityResult(Activity.java:3877)
E/AndroidRuntime( 1734):    at android.app.ActivityThread.deliverResults(ActivityThread.java:3340)
src/com/android/launcher2/Workspace.java