am 32270726: am 13724ea6: Make the launcher send the position of the icon that\'s launching an intent.

Merge commit '3227072624ba6fcc73d5635067a021a4ad734c80' into eclair-mr2-plus-aosp

* commit '3227072624ba6fcc73d5635067a021a4ad734c80':
  Make the launcher send the position of the icon that's launching an intent.
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 327fa3a..5f6e6f1 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1395,6 +1395,10 @@
         if (tag instanceof ApplicationInfo) {
             // Open shortcut
             final Intent intent = ((ApplicationInfo) tag).intent;
+            int[] pos = new int[2];
+            v.getLocationOnScreen(pos);
+            intent.setSourceBounds(
+                    new Rect(pos[0], pos[1], pos[0]+v.getWidth(), pos[1]+v.getHeight()));
             startActivitySafely(intent);
         } else if (tag instanceof FolderInfo) {
             handleFolderClick((FolderInfo) tag);