summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/dialer/filterednumber/BlockedNumbersAdapter.java3
-rw-r--r--src/com/android/dialer/list/BlockedListSearchFragment.java3
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);