diff options
author | Yorke Lee <yorkelee@google.com> | 2013-11-19 21:54:14 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-11-19 21:54:15 +0000 |
commit | a84ba075107397c8c8fd9a0dee2f664fa139e38f (patch) | |
tree | 9d2612432bd92e794d6d0fc6781c8cc1dbbfccc5 | |
parent | 21d991ee8bab6e2ef7d9df0b268b39053b21cf5b (diff) | |
parent | dbe9db9e26d4c7ca08ba24630e990e25629aac78 (diff) |
Merge "Use single instance of PhoneNumberUtilsWrapper"
-rw-r--r-- | src/com/android/dialer/calllog/PhoneNumberUtilsWrapper.java | 4 |
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)) { |