summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/popup
diff options
context:
space:
mode:
authorTony <twickham@google.com>2017-05-02 21:32:27 -0700
committerTony <twickham@google.com>2017-05-02 21:32:27 -0700
commite3c59256794448c67e01333a9f5036559b1bd502 (patch)
treea1aa6a0052bd58deaf63620f9f6741424f165dd7 /src/com/android/launcher3/popup
parentb4c2f07cd30242733c63604afd4667417284d309 (diff)
downloadandroid_packages_apps_Trebuchet-e3c59256794448c67e01333a9f5036559b1bd502.tar.gz
android_packages_apps_Trebuchet-e3c59256794448c67e01333a9f5036559b1bd502.tar.bz2
android_packages_apps_Trebuchet-e3c59256794448c67e01333a9f5036559b1bd502.zip
Use source bounds/activity options for App Info System Shortcut
Bug: 37923215 Change-Id: I6c3e64b7a98223ab26fde80c0a86dd169200065f
Diffstat (limited to 'src/com/android/launcher3/popup')
-rw-r--r--src/com/android/launcher3/popup/SystemShortcut.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/popup/SystemShortcut.java b/src/com/android/launcher3/popup/SystemShortcut.java
index e48e349a6..08e17dcb7 100644
--- a/src/com/android/launcher3/popup/SystemShortcut.java
+++ b/src/com/android/launcher3/popup/SystemShortcut.java
@@ -1,7 +1,9 @@
package com.android.launcher3.popup;
import android.content.Context;
+import android.graphics.Rect;
import android.graphics.drawable.Drawable;
+import android.os.Bundle;
import android.view.View;
import com.android.launcher3.InfoDropTarget;
@@ -81,7 +83,9 @@ public abstract class SystemShortcut {
return new View.OnClickListener() {
@Override
public void onClick(View view) {
- InfoDropTarget.startDetailsActivityForInfo(itemInfo, launcher, null);
+ Rect sourceBounds = launcher.getViewBounds(view);
+ Bundle opts = launcher.getActivityLaunchOptions(view);
+ InfoDropTarget.startDetailsActivityForInfo(itemInfo, launcher, null, sourceBounds, opts);
}
};
}