Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev am: 059d812ef9 am: 388393c843 am: bbcfaf8c86

Change-Id: I956c00cef2b0377fdd8b4ff931d5501a3c31a70f
This commit is contained in:
TreeHugger Robot
2020-05-21 19:55:46 +00:00
committed by Automerger Merge Worker

View File

@@ -2156,7 +2156,10 @@ public class ChooserActivity extends ResolverActivity implements
Bundle extras = new Bundle();
extras.putString(Intent.EXTRA_SHORTCUT_ID, shortcutInfo.getId());
ChooserTarget chooserTarget = new ChooserTarget(shortcutInfo.getShortLabel(),
ChooserTarget chooserTarget = new ChooserTarget(
shortcutInfo.getLongLabel() != null ? shortcutInfo.getLongLabel()
: shortcutInfo.getShortLabel(),
null, // Icon will be loaded later if this target is selected to be shown.
score, matchingShortcuts.get(i).getTargetComponent().clone(), extras);