summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-11-05 17:31:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-05 17:31:44 +0000
commite6b0084dde5ae729584095cfe17bbc13eac6e5b7 (patch)
tree9296e8d0d01b28183eb810c9a4bb45f2560d9d59 /src
parent5e0499f20ca5b29bd09838f19bacff5ac9fd8e1e (diff)
parentdccdf95e813b3e2df28968d6f9fc3699c2a3db1a (diff)
Merge "Protect against ActivityNotFoundException" into lmp-mr1-dev
Diffstat (limited to 'src')
-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);