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

Commit aee02cd7 authored by Jeff Gaston's avatar Jeff Gaston
Browse files

Update calls to addToShortcutIntent

Bug: 77554455
Test: m -j checkbuild
Change-Id: Id50ff937c88f1883cbdc10d3a77cb8967fb4a11d
parent 20231523
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
        }