From 3a8f2d721ecc7500ecb285aeb8e0f60f3d70f1bb Mon Sep 17 00:00:00 2001 From: Brandon Maxwell Date: Tue, 10 Nov 2015 11:41:22 -0800 Subject: Format numbers in block dialog fragment Bug:25591800 Change-Id: Id858afc7771d6357e780de1826f0333b7601b26f --- src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java | 3 ++- src/com/android/dialer/list/BlockedListSearchFragment.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3