diff options
author | Yorke Lee <yorkelee@google.com> | 2014-03-04 16:59:10 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-04 16:59:10 +0000 |
commit | e9a9bed74b37d47ef4013b1629018cabf39d2de4 (patch) | |
tree | 40aa81c505958b7c0cbfaa1f2038a86de4698298 | |
parent | 32b939f8ad586db490b83e49b54d9af6687bbded (diff) | |
parent | b8040e90519320c5a8abc4acc66db676d082e59d (diff) |
am b8040e90: am 20e53363: am df4d08dc: Use single instance of PhoneNumberUtilsWrapper
* commit 'b8040e90519320c5a8abc4acc66db676d082e59d':
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)) { |