diff options
author | Yorke Lee <yorkelee@google.com> | 2013-09-09 10:19:40 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-09-09 17:35:52 -0700 |
commit | 58ebe5d3fac837625b69fe1565427f17025bd780 (patch) | |
tree | a8b0a7931685bff41cb23b630652d725c4bb9078 /src/com/android/dialer/CallDetailActivity.java | |
parent | 88517c68bac750e467f4b21caf7805c8b44b27f6 (diff) |
Add URI for unknown contacts to enable quick contact badge
Bug: 10600250
Change-Id: I38dc59d3c6637593353601f03dbc067c36abdde7
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index 05c1e7fdc..d0e18bfcf 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -55,6 +55,8 @@ import com.android.contacts.common.ContactPhotoManager; import com.android.contacts.common.CallUtil; import com.android.contacts.common.ClipboardUtils; import com.android.contacts.common.GeoUtil; +import com.android.contacts.common.util.Constants; +import com.android.contacts.common.util.UriUtils; import com.android.dialer.BackScrollManager.ScrollableHeader; import com.android.dialer.calllog.CallDetailHistoryAdapter; import com.android.dialer.calllog.CallTypeHelper; @@ -450,7 +452,7 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware nameOrNumber = firstDetails.number; } - if (contactUri != null) { + if (contactUri != null && !UriUtils.isEncodedContactUri(contactUri)) { mainActionIntent = new Intent(Intent.ACTION_VIEW, contactUri); // This will launch People's detail contact screen, so we probably want to // treat it as a separate People task. |