Added custom actions for showing the shortcuts menu and adding a quick action

on the home screen

Bug: 30374655
Change-Id: I2f3ae31f2fb2c09f64f2a47e95a9d25435f7efe2
This commit is contained in:
Sunny Goyal
2016-07-25 13:54:32 -07:00
parent b0e80bcee7
commit 3ffa64df36
7 changed files with 151 additions and 41 deletions

View File

@@ -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.
*/