diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2016-07-26 00:39:51 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2016-07-26 00:39:51 +0000 |
commit | 6f155340b93483168b5ed129e653289e8eedf11c (patch) | |
tree | 63e581c7177b83996d518b130eedf9ecdc991ef2 /src/com/android/launcher3/BubbleTextView.java | |
parent | 8f8f398941e8ae36072dfaed4215bcb02ae84f88 (diff) | |
parent | 3ffa64df36221a7ae3946f11ced4dcfc487e18dc (diff) | |
download | android_packages_apps_Trebuchet-6f155340b93483168b5ed129e653289e8eedf11c.tar.gz android_packages_apps_Trebuchet-6f155340b93483168b5ed129e653289e8eedf11c.tar.bz2 android_packages_apps_Trebuchet-6f155340b93483168b5ed129e653289e8eedf11c.zip |
Merge "Added custom actions for showing the shortcuts menu and adding a quick action on the home screen" into ub-launcher3-calgary
Diffstat (limited to 'src/com/android/launcher3/BubbleTextView.java')
-rw-r--r-- | src/com/android/launcher3/BubbleTextView.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/BubbleTextView.java b/src/com/android/launcher3/BubbleTextView.java index b476392b4..33b3ad347 100644 --- a/src/com/android/launcher3/BubbleTextView.java +++ b/src/com/android/launcher3/BubbleTextView.java @@ -652,6 +652,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, |