Add shortcut title into pin label. Without shortcut title, the pin label does not make sense in non-English string. am: 82b7fd414d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18328646 Change-Id: Ief09433689d292791b7a3e8655289e937e674a47 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user