diff options
author | Yorke Lee <yorkelee@google.com> | 2014-11-04 20:16:24 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2014-11-04 20:16:24 -0800 |
commit | dccdf95e813b3e2df28968d6f9fc3699c2a3db1a (patch) | |
tree | 42b6d1b270e2fd64e52cb0fdb7fd476f7a5282e3 /src | |
parent | bd421b68ec17cd33ee3dd1d2613f5637299e57d9 (diff) |
Protect against ActivityNotFoundException
Bug: 18247185
Change-Id: I744355ea712f713d5510fa26f141ee2cce7491ff
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/calllog/CallLogAdapter.java | 3 |
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); |