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

Commit 79642c30 authored by twyen's avatar twyen Committed by Copybara-Service
Browse files

Handle ActivityNotFoundException when starting intent from IntentModule

Bug: 70515828
Test: IntentModuleTest
PiperOrigin-RevId: 179123113
Change-Id: I3cfed7570505c058f3e86054186115db98bb2a8e
parent 89c9ff50
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.telecom.PhoneAccountHandle;
import com.android.dialer.callintent.CallInitiationType.Type;
import com.android.dialer.callintent.CallIntentBuilder;
import com.android.dialer.precall.PreCall;
import com.android.dialer.util.DialerUtils;

/**
 * {@link ContactActionModule} useful for making easy to build modules based on starting an intent.
@@ -55,7 +56,7 @@ public class IntentModule implements ContactActionModule {

  @Override
  public boolean onClick() {
    context.startActivity(intent);
    DialerUtils.startActivityWithErrorToast(context, intent);
    return true;
  }