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

Commit 40ffd4a6 authored by guanxiongliu's avatar guanxiongliu Committed by android-build-merger
Browse files

Merge "Using Intent display name to create shortcut" into nyc-dev

am: 5bf5b176

* commit '5bf5b176':
  Using Intent display name to create shortcut

Change-Id: I5c691410dd8a883477a1cd88cc6168808179a898
parents 52127644 5bf5b176
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2719,7 +2719,8 @@ public class QuickContactActivity extends ContactsActivity

                        // Send a toast to give feedback to the user that a shortcut to this
                        // contact was added to the launcher.
                        final String displayName = mContactData.getDisplayName();
                        final String displayName = shortcutIntent
                                .getStringExtra(Intent.EXTRA_SHORTCUT_NAME);
                        final String toastMessage = TextUtils.isEmpty(displayName)
                                ? getString(R.string.createContactShortcutSuccessful_NoName)
                                : getString(R.string.createContactShortcutSuccessful, displayName);