summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-12-15 03:23:30 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-12-15 03:23:30 +0000
commita3a6876eb7bcbce46fcac68051f16ac2b1ee2914 (patch)
tree346df1bcf4deef7c3d357d121a3f2b4b5a885d80 /java
parent95c58896418b894dda2b584eab8043eee6b41ff1 (diff)
parent79642c3028593a3e7422b60c63ddaa190146fa00 (diff)
Merge "Handle ActivityNotFoundException when starting intent from IntentModule"
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/contactactions/IntentModule.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/android/dialer/contactactions/IntentModule.java b/java/com/android/dialer/contactactions/IntentModule.java
index 57eb50a9b..aa7fd25a6 100644
--- a/java/com/android/dialer/contactactions/IntentModule.java
+++ b/java/com/android/dialer/contactactions/IntentModule.java
@@ -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;
}