From b9db7c9f5a8924361ae2f439509e19993d82b884 Mon Sep 17 00:00:00 2001 From: Mike Lockwood <> Date: Sun, 5 Apr 2009 14:15:41 -0700 Subject: AI 144593: Fix GSM cell location updates. BUG=1761611 Automated import of CL 144593 --- .../com/android/internal/telephony/gsm/GsmServiceStateTracker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'telephony/java/com') diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java index 3c0b603..8ecf245 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmServiceStateTracker.java @@ -383,7 +383,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker { String states[] = (String[])ar.result; int lac = -1; int cid = -1; - if (states.length == 3) { + if (states.length >= 3) { try { if (states[1] != null && states[1].length() > 0) { lac = Integer.parseInt(states[1], 16); @@ -629,7 +629,7 @@ final class GsmServiceStateTracker extends ServiceStateTracker { if (states.length > 0) { try { regState = Integer.parseInt(states[0]); - if (states.length == 3) { + if (states.length >= 3) { if (states[1] != null && states[1].length() > 0) { lac = Integer.parseInt(states[1], 16); } -- cgit v1.1