The words "title" and "text" implies that "text" is a secondary label
that's shown with the title, but it turned out the launcher would show
only one of those depending on how much space it has.
So now we change them to "shortLabel" and "longLabel"
Note we're only changing the API surface -- in order to mimimize
the impact to the code, internally we'll keep using the old names.
- Also remove "shortcutRank" while I'm here -- it should be implied
from the order of the XML elements.
Bug 29057378
Change-Id: I3203f63b0318c7462c1c61fef43cf9755fa8c008
See https://goto.google.com/shortcutmanager-spec-dr for
the details.
This CL contains changes to ShortcutInfo and all the new API
entry points, but not the implementation of the new APIs.
- ShortcutInfo.activityComponent is now mandatory.
- Publishers can now disable shortcuts. ShortcutInfo can now have
"disabled message".
- ShortcutInfo now supports string resources for all the String
fields.
-> When launcher fetches shortcuts, ShortcutService will
automatically load resources and expose as strings.
- LauncherApps now supports getShortcutIconDrawable() and
getShortcutBadgedIconDrawable() to be consistent with
LauncherActivityInfo.
- ShortcutInfo.weight is replaced with "rank".
- Added ShortcutManager.reportShortcutUsed(), which will be used for
usage tracking / suggestion.
Bug 28536054
Bug 28536066
Bug 28564134
Bug 28594168
Change-Id: Ib8245b39bb1e753991a9de89c0b73accacd90355