diff options
author | Brandon Maxwell <maxwelb@google.com> | 2015-11-10 11:41:22 -0800 |
---|---|---|
committer | Brandon Maxwell <maxwelb@google.com> | 2015-11-10 16:07:01 -0800 |
commit | 3a8f2d721ecc7500ecb285aeb8e0f60f3d70f1bb (patch) | |
tree | 8fca7a58b8344e3c0588bbcb6bce0168170c773b | |
parent | 1febe8b1542d6038787754c0749527a66b58b01d (diff) |
Format numbers in block dialog fragment
Bug:25591800
Change-Id: Id858afc7771d6357e780de1826f0333b7601b26f
-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 bddd3d49d..2d04c6964 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; @@ -181,7 +182,7 @@ public class BlockedListSearchFragment extends RegularSearchFragment id, number, countryIso, - number, + PhoneNumberUtils.formatNumber(number, countryIso), R.id.blocked_numbers_activity_container, getFragmentManager(), BlockedListSearchFragment.this); |