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

Commit 5bf5b176 authored by Sean Liu's avatar Sean Liu Committed by Android (Google) Code Review
Browse files

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

parents 0488c3d8 ce8fc7ba
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line 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
                        // Send a toast to give feedback to the user that a shortcut to this
                        // contact was added to the launcher.
                        // 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)
                        final String toastMessage = TextUtils.isEmpty(displayName)
                                ? getString(R.string.createContactShortcutSuccessful_NoName)
                                ? getString(R.string.createContactShortcutSuccessful_NoName)
                                : getString(R.string.createContactShortcutSuccessful, displayName);
                                : getString(R.string.createContactShortcutSuccessful, displayName);