diff options
author | Christine Chen <christinech@google.com> | 2013-07-02 14:24:21 -0700 |
---|---|---|
committer | Christine Chen <christinech@google.com> | 2013-07-02 14:36:16 -0700 |
commit | 9d28cc4b92fac8cbbebbbb9adddd529c50b2545d (patch) | |
tree | ccff5c8be64937d6cd41bf2fc1305c675e77bfb2 /src | |
parent | 661834dd3b45b477165effe126a9c243750ae8d6 (diff) |
Fixing SmartDial crash bug.
Change-Id: I405535654240b959cf8b0caa7ecfa8456a632791
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/dialer/dialpad/SmartDialPrefix.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/dialpad/SmartDialPrefix.java b/src/com/android/dialer/dialpad/SmartDialPrefix.java index 857f6408a..a0b51ebb5 100644 --- a/src/com/android/dialer/dialpad/SmartDialPrefix.java +++ b/src/com/android/dialer/dialpad/SmartDialPrefix.java @@ -280,7 +280,7 @@ public class SmartDialPrefix { /** If the number does not start with '+', finds out whether it is in NANP * format and has '1' preceding the number. */ - if ((normalizedNumber.charAt(0) == '1') && (normalizedNumber.length() == 11) && + if ((normalizedNumber.length() == 11) && (normalizedNumber.charAt(0) == '1') && (sUserInNanpRegion)) { countryCode = "1"; countryCodeOffset = number.indexOf(normalizedNumber.charAt(1)); |