diff options
author | Kenny Root <kroot@google.com> | 2010-02-17 09:55:53 -0800 |
---|---|---|
committer | Kenny Root <kroot@google.com> | 2010-02-17 09:55:53 -0800 |
commit | 7ae17760462e4c16ef0ea4289612c5950258d5da (patch) | |
tree | 27074631ba55cfc8439f749a16b143e9be40dc66 /telephony/java | |
parent | a4437fc93a993c7ab326b592d22c05be2f11b543 (diff) | |
download | frameworks_base-7ae17760462e4c16ef0ea4289612c5950258d5da.zip frameworks_base-7ae17760462e4c16ef0ea4289612c5950258d5da.tar.gz frameworks_base-7ae17760462e4c16ef0ea4289612c5950258d5da.tar.bz2 |
Correct use of logical AND
A bitwise AND was use when a logical AND was meant to be used.
Change-Id: I4e5529ff9fce1e6397d7cd9483268766fc92dcf5
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/android/telephony/PhoneNumberUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/PhoneNumberUtils.java b/telephony/java/android/telephony/PhoneNumberUtils.java index 586f63f..6797f78 100644 --- a/telephony/java/android/telephony/PhoneNumberUtils.java +++ b/telephony/java/android/telephony/PhoneNumberUtils.java @@ -1654,7 +1654,7 @@ public class PhoneNumberUtils if (DBG) log("processPlusCodeWithinNanp,networkDialStr=" + networkDialStr); // If there is a plus sign at the beginning of the dial string, // Convert the plus sign to the default IDP since it's an international number - if (networkDialStr != null & + if (networkDialStr != null && networkDialStr.charAt(0) == PLUS_SIGN_CHAR && networkDialStr.length() > 1) { String newStr = networkDialStr.substring(1); |