From 3ffa64df36221a7ae3946f11ced4dcfc487e18dc Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Mon, 25 Jul 2016 13:54:32 -0700 Subject: Added custom actions for showing the shortcuts menu and adding a quick action on the home screen Bug: 30374655 Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2 --- src/com/android/launcher3/BubbleTextView.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/com/android/launcher3/BubbleTextView.java') 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 @@ -648,6 +648,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. */ -- cgit v1.2.3