diff options
Diffstat (limited to 'src/com/android/launcher3/ShortcutInfo.java')
-rw-r--r-- | src/com/android/launcher3/ShortcutInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/launcher3/ShortcutInfo.java b/src/com/android/launcher3/ShortcutInfo.java index a2182e85e..8c466b2b0 100644 --- a/src/com/android/launcher3/ShortcutInfo.java +++ b/src/com/android/launcher3/ShortcutInfo.java @@ -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(); |