diff options
author | Yorke Lee <yorkelee@google.com> | 2013-11-19 14:11:24 -0800 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2013-11-19 14:11:24 -0800 |
commit | 37d29854313ca0a7807ac4fd5d10d154b79ee2eb (patch) | |
tree | c7a4bb79e1eb9b0d5c6555e095fad7836db47aea /src/com/android/dialer/CallDetailActivity.java | |
parent | 24ec319f8d410be8a1923c4033f927165876cbab (diff) |
Remove private references to isUriNumber and getUsernameFromUriNumber
These methods in PhoneNumberUtils are pretty specific, so don't make them
public APIs. Instead, use the methods already in PhoneNumberhelper.
Bug: 6948882
Change-Id: I487593543eba526c64588d9a3e70b19b4ed941ab
Diffstat (limited to 'src/com/android/dialer/CallDetailActivity.java')
-rw-r--r-- | src/com/android/dialer/CallDetailActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/CallDetailActivity.java b/src/com/android/dialer/CallDetailActivity.java index c8b8385b6..c96cbf1cd 100644 --- a/src/com/android/dialer/CallDetailActivity.java +++ b/src/com/android/dialer/CallDetailActivity.java @@ -37,7 +37,6 @@ import android.provider.ContactsContract.Contacts; import android.provider.ContactsContract.DisplayNameSources; import android.provider.ContactsContract.Intents.Insert; import android.provider.VoicemailContract.Voicemails; -import android.telephony.PhoneNumberUtils; import android.telephony.TelephonyManager; import android.text.TextUtils; import android.util.Log; @@ -59,6 +58,7 @@ import com.android.contacts.common.ClipboardUtils; import com.android.contacts.common.GeoUtil; import com.android.contacts.common.model.Contact; import com.android.contacts.common.model.ContactLoader; +import com.android.contacts.common.util.PhoneNumberHelper; import com.android.contacts.common.util.UriUtils; import com.android.dialer.BackScrollManager.ScrollableHeader; import com.android.dialer.calllog.CallDetailHistoryAdapter; @@ -561,7 +561,7 @@ public class CallDetailActivity extends Activity implements ProximitySensorAware // Only show a label if the number is shown and it is not a SIP address. if (!TextUtils.isEmpty(firstDetails.name) && !TextUtils.isEmpty(firstDetails.number) - && !PhoneNumberUtils.isUriNumber(firstDetails.number.toString())) { + && !PhoneNumberHelper.isUriNumber(firstDetails.number.toString())) { entry.label = Phone.getTypeLabel(mResources, firstDetails.numberType, firstDetails.numberLabel); } |