summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/dialer/calllog/CallLogAdapter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java
index 50520bb42..5e762c721 100644
--- a/src/com/android/dialer/calllog/CallLogAdapter.java
+++ b/src/com/android/dialer/calllog/CallLogAdapter.java
@@ -1071,7 +1071,8 @@ public class CallLogAdapter extends GroupingListAdapter
public void onClick(View v) {
final Intent intent =
DialtactsActivity.getAddNumberToContactIntent(details.number);
- mContext.startActivity(intent);
+ DialerUtils.startActivityWithErrorToast(mContext, intent,
+ R.string.add_contact_not_available);
}
});
mBadgeImageView.setImageResource(R.drawable.ic_person_add_24dp);