diff options
author | Jeff Gaston <jeffrygaston@google.com> | 2018-04-04 00:55:38 -0400 |
---|---|---|
committer | Jeff Gaston <jeffrygaston@google.com> | 2018-04-04 02:10:50 -0400 |
commit | aee02cd7988ee0f1087c06ce04e41ad521c5ecda (patch) | |
tree | fc54a89ca25b7826d77f3c6f5467c7d96916be5e | |
parent | 2023152392d295fb4881c64b15b1a3f9e5b106aa (diff) | |
download | Contacts-aee02cd7988ee0f1087c06ce04e41ad521c5ecda.tar.gz |
Update calls to addToShortcutIntent
Bug: 77554455
Test: m -j checkbuild
Change-Id: Id50ff937c88f1883cbdc10d3a77cb8967fb4a11d
-rw-r--r-- | src/com/android/contacts/ShortcutIntentBuilder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/contacts/ShortcutIntentBuilder.java b/src/com/android/contacts/ShortcutIntentBuilder.java index 809119667..5f480c685 100644 --- a/src/com/android/contacts/ShortcutIntentBuilder.java +++ b/src/com/android/contacts/ShortcutIntentBuilder.java @@ -300,7 +300,7 @@ public class ShortcutIntentBuilder { final Bitmap icon = generateQuickContactIcon(drawable); if (BuildCompat.isAtLeastO()) { final IconCompat compatIcon = IconCompat.createWithAdaptiveBitmap(icon); - compatIcon.addToShortcutIntent(intent); + compatIcon.addToShortcutIntent(intent, null, mContext); } else { intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, icon); } @@ -356,7 +356,7 @@ public class ShortcutIntentBuilder { intent = intent == null ? new Intent() : intent; // This will be non-null in O and above. if (compatAdaptiveIcon != null) { - compatAdaptiveIcon.addToShortcutIntent(intent); + compatAdaptiveIcon.addToShortcutIntent(intent, null, mContext); } else { intent.putExtra(Intent.EXTRA_SHORTCUT_ICON, icon); } |