summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/ShortcutInfo.java
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2013-11-19 15:45:07 +0000
committerDanesh M <daneshm90@gmail.com>2014-06-06 22:54:19 -0700
commit454c49e6716289b869168a3e8ab8e6b645edc554 (patch)
treecec4b03bbf62421fd1e1e1f4a8d75f1974d18090 /src/com/android/launcher3/ShortcutInfo.java
parent0426f95e7a5aa34b0b6c220af769aa9f0b845ff3 (diff)
downloadandroid_packages_apps_Trebuchet-454c49e6716289b869168a3e8ab8e6b645edc554.tar.gz
android_packages_apps_Trebuchet-454c49e6716289b869168a3e8ab8e6b645edc554.tar.bz2
android_packages_apps_Trebuchet-454c49e6716289b869168a3e8ab8e6b645edc554.zip
Add support for initiating a drag from an overlay.
This allows an overlay to create apps and shortcuts on the home screen. Change-Id: I63ee4ef02db3f4bc89726c394fd55ad26f50452c
Diffstat (limited to 'src/com/android/launcher3/ShortcutInfo.java')
-rw-r--r--src/com/android/launcher3/ShortcutInfo.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/android/launcher3/ShortcutInfo.java b/src/com/android/launcher3/ShortcutInfo.java
index 0998eec2b..6f38eae54 100644
--- a/src/com/android/launcher3/ShortcutInfo.java
+++ b/src/com/android/launcher3/ShortcutInfo.java
@@ -71,7 +71,14 @@ class ShortcutInfo extends ItemInfo {
protected Intent getIntent() {
return intent;
}
-
+
+ ShortcutInfo(Intent intent, CharSequence title, Bitmap icon) {
+ this();
+ this.intent = intent;
+ this.title = title;
+ mIcon = icon;
+ }
+
public ShortcutInfo(Context context, ShortcutInfo info) {
super(info);
title = info.title.toString();