Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev am: 059d812ef9
Change-Id: I67ff6d817a5da4025f89b134db5ea461c2cbf9d0
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user