summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/BubbleTextView.java
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2016-07-25 13:54:32 -0700
committerSunny Goyal <sunnygoyal@google.com>2016-07-25 17:39:34 -0700
commit3ffa64df36221a7ae3946f11ced4dcfc487e18dc (patch)
tree4bd3576350ef14d49ec6304275b41a41033c9209 /src/com/android/launcher3/BubbleTextView.java
parentb0e80bcee7735589f5a11b1abc858acb6bf9d438 (diff)
downloadandroid_packages_apps_Trebuchet-3ffa64df36221a7ae3946f11ced4dcfc487e18dc.tar.gz
android_packages_apps_Trebuchet-3ffa64df36221a7ae3946f11ced4dcfc487e18dc.tar.bz2
android_packages_apps_Trebuchet-3ffa64df36221a7ae3946f11ced4dcfc487e18dc.zip
Added custom actions for showing the shortcuts menu and adding a quick action
on the home screen Bug: 30374655 Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r--src/com/android/launcher3/BubbleTextView.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java
index c0c6673ee..3d91306f8 100644
--- a/src/com/android/launcher3/BubbleTextView.java
+++ b/src/com/android/launcher3/BubbleTextView.java
@@ -649,6 +649,13 @@ public class BubbleTextView extends TextView
}
/**
+ * Returns true if the view can show custom shortcuts.
+ */
+ public boolean hasDeepShortcuts() {
+ return !mLauncher.getShortcutIdsForItem((ItemInfo) getTag()).isEmpty();
+ }
+
+ /**
* Returns the start delay when animating between certain {@link FastBitmapDrawable} states.
*/
private static int getStartDelayForStateChange(final FastBitmapDrawable.State fromState,