From 9d28cc4b92fac8cbbebbbb9adddd529c50b2545d Mon Sep 17 00:00:00 2001 From: Christine Chen Date: Tue, 2 Jul 2013 14:24:21 -0700 Subject: Fixing SmartDial crash bug. Change-Id: I405535654240b959cf8b0caa7ecfa8456a632791 --- src/com/android/dialer/dialpad/SmartDialPrefix.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3