Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82b7fd41 authored by Song Hu's avatar Song Hu
Browse files

Add shortcut title into pin label. Without shortcut title, the pin label does...

Add shortcut title into pin label. Without shortcut title, the pin label does not make sense in non-English string.

Bug: 232198467
Test: manual test on local phone
Change-Id: I5a4760ffed87ed3e573eb4c48ef754e641853f61
parent e10b6c4d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -269,7 +269,7 @@ public class ChooserTargetActionsDialogFragment extends DialogFragment
    protected CharSequence getItemLabel(DisplayResolveInfo dri) {
        final PackageManager pm = getContext().getPackageManager();
        return getPinLabel(isPinned(dri),
                isShortcutTarget() ? "" : dri.getResolveInfo().loadLabel(pm));
                isShortcutTarget() ? mShortcutTitle : dri.getResolveInfo().loadLabel(pm));
    }

    @Nullable