commit | dccdf95e813b3e2df28968d6f9fc3699c2a3db1a | [log] [tgz] |
---|---|---|
author | Yorke Lee <yorkelee@google.com> | Tue Nov 04 20:16:24 2014 -0800 |
committer | Yorke Lee <yorkelee@google.com> | Tue Nov 04 20:16:24 2014 -0800 |
tree | 42b6d1b270e2fd64e52cb0fdb7fd476f7a5282e3 | |
parent | bd421b68ec17cd33ee3dd1d2613f5637299e57d9 [diff] |
Protect against ActivityNotFoundException Bug: 18247185 Change-Id: I744355ea712f713d5510fa26f141ee2cce7491ff
diff --git a/src/com/android/dialer/calllog/CallLogAdapter.java b/src/com/android/dialer/calllog/CallLogAdapter.java index 50520bb..5e762c7 100644 --- a/src/com/android/dialer/calllog/CallLogAdapter.java +++ b/src/com/android/dialer/calllog/CallLogAdapter.java
@@ -1071,7 +1071,8 @@ 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);