mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Use shortcut disabled message if available.
Bug: 30681210 Change-Id: Ibb5fd58e5fc9557b63730bc1e3c3977133769466
This commit is contained in:
@@ -133,6 +133,12 @@ public class ShortcutInfo extends ItemInfo {
|
||||
*/
|
||||
int isDisabled = DEFAULT;
|
||||
|
||||
/**
|
||||
* A message to display when the user tries to start a disabled shortcut.
|
||||
* This is currently only used for deep shortcuts.
|
||||
*/
|
||||
CharSequence disabledMessage;
|
||||
|
||||
int status;
|
||||
|
||||
/**
|
||||
@@ -309,6 +315,7 @@ public class ShortcutInfo extends ItemInfo {
|
||||
} else {
|
||||
isDisabled |= FLAG_DISABLED_BY_PUBLISHER;
|
||||
}
|
||||
disabledMessage = shortcutInfo.getDisabledMessage();
|
||||
|
||||
// TODO: Use cache for this
|
||||
LauncherAppState launcherAppState = LauncherAppState.getInstance();
|
||||
|
||||
Reference in New Issue
Block a user