summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2014-03-04 16:53:56 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-04 16:53:56 +0000
commit20e53363c102d4075c084772090883cdcf0b4aab (patch)
treed8207f6edbd44909065a81f48f496332c02fa48f
parent7e4e56f008292af2795938a0bc1f25ab195efe14 (diff)
parentdf4d08dcf662f45697236064b02787f7d0a06f83 (diff)
am df4d08dc: Use single instance of PhoneNumberUtilsWrapper
* commit 'df4d08dcf662f45697236064b02787f7d0a06f83': Use single instance of PhoneNumberUtilsWrapper
-rw-r--r--src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java b/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java
index 2133f0f9d..91a818829 100644
--- a/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java
+++ b/src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java
@@ -28,7 +28,7 @@ import java.util.Set;
*
*/
public class PhoneNumberUtilsWrapper {
-
+ private static final PhoneNumberUtilsWrapper INSTANCE = new PhoneNumberUtilsWrapper();
private static final Set<String> LEGACY_UNKNOWN_NUMBERS = Sets.newHashSet("-1", "-2", "-3");
/** Returns true if it is possible to place a call to the given number. */
@@ -74,7 +74,7 @@ public class PhoneNumberUtilsWrapper {
if (TextUtils.isEmpty(number)) {
return false;
}
- if (new PhoneNumberUtilsWrapper().isVoicemailNumber(number)) {
+ if (INSTANCE.isVoicemailNumber(number)) {
return false;
}
if (isLegacyUnknownNumbers(number)) {