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

Commit ce8fc7ba authored by guanxiongliu's avatar guanxiongliu Committed by Sean Liu
Browse files

Using Intent display name to create shortcut

Bug:27837872
Change-Id: Ib1c410f77036514069136980ab23f85ec35e7ba8
(cherry picked from commit 3fb39c1d8dc81e6766ce8014416c956feff03f35)
parent 9b86e305
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);