Added custom actions for showing the shortcuts menu and adding a quick action
on the home screen
Bug: 30374655
Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java
index c0c6673..3d91306 100644
--- a/src/com/android/launcher3/BubbleTextView.java
+++ b/src/com/android/launcher3/BubbleTextView.java
@@ -649,6 +649,13 @@
}
/**
+ * 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,