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

Commit 0647b559 authored by Song Hu's avatar Song Hu Committed by Automerger Merge Worker
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. am: 82b7fd41

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18328646



Change-Id: Ief09433689d292791b7a3e8655289e937e674a47
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7ce51c29 82b7fd41
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