diff options
author | Brandon Maxwell <maxwelb@google.com> | 2015-11-11 00:11:36 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-11 00:11:36 +0000 |
commit | b469c44e0ade76e1a7607b3b87417069772eb4eb (patch) | |
tree | facee87652e03f0c702604cf95f95865c739ebf6 /src | |
parent | 7754515a43ccd8246c3ff79360090e6b03acb5cf (diff) | |
parent | 21f1eb5a8b3083cf29af4ed3f41696401daabc93 (diff) |
Merge "Format numbers in block dialog fragment" into ub-contactsdialer-a-dev
am: 21f1eb5a8b
* commit '21f1eb5a8b3083cf29af4ed3f41696401daabc93':
Format numbers in block dialog fragment
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java | 3 | ||||
-rw-r--r-- | src/com/android/dialer/list/BlockedListSearchFragment.java | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java b/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java index be83df723..ce96b6711 100644 --- a/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java +++ b/src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java @@ -18,6 +18,7 @@ package com.android.dialer.filterednumber; import android.app.FragmentManager; import android.content.Context; import android.database.Cursor; +import android.telephony.PhoneNumberUtils; import android.view.View; import com.android.contacts.common.ContactPhotoManager; @@ -64,7 +65,7 @@ public class BlockedNumbersAdapter extends NumbersAdapter { id, number, countryIso, - number, + PhoneNumberUtils.formatNumber(number, countryIso), R.id.blocked_number_fragment, getFragmentManager(), null /* callback */); diff --git a/src/com/android/dialer/list/BlockedListSearchFragment.java b/src/com/android/dialer/list/BlockedListSearchFragment.java index 717cf9e46..daa384acf 100644 --- a/src/com/android/dialer/list/BlockedListSearchFragment.java +++ b/src/com/android/dialer/list/BlockedListSearchFragment.java @@ -19,6 +19,7 @@ import android.app.Activity; import android.os.Bundle; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; +import android.telephony.PhoneNumberUtils; import android.text.Editable; import android.text.TextUtils; import android.text.TextWatcher; @@ -175,7 +176,7 @@ public class BlockedListSearchFragment extends RegularSearchFragment id, number, countryIso, - number, + PhoneNumberUtils.formatNumber(number, countryIso), R.id.blocked_numbers_activity_container, getFragmentManager(), BlockedListSearchFragment.this); |