summaryrefslogtreecommitdiffstats
path: root/location/java
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-04-29 13:35:37 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-04-29 13:35:37 -0700
commit77c8adf9ff3c17937036d4392bf80a5cc1083313 (patch)
tree349a57ec57873b1adb29ceb53119459602456887 /location/java
parenta73b41ae601b391ae67a4c603d07f8949cd666ac (diff)
parent5f2788bc9d947f7793aaea06f7e21d6b74c98826 (diff)
downloadframeworks_base-77c8adf9ff3c17937036d4392bf80a5cc1083313.zip
frameworks_base-77c8adf9ff3c17937036d4392bf80a5cc1083313.tar.gz
frameworks_base-77c8adf9ff3c17937036d4392bf80a5cc1083313.tar.bz2
am 5f2788b: Merge change 686 into donut
Merge commit '5f2788bc9d947f7793aaea06f7e21d6b74c98826' * commit '5f2788bc9d947f7793aaea06f7e21d6b74c98826': gps: Don't crash if no XTRA servers are specified.
Diffstat (limited to 'location/java')
-rw-r--r--location/java/com/android/internal/location/GpsXtraDownloader.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/location/java/com/android/internal/location/GpsXtraDownloader.java b/location/java/com/android/internal/location/GpsXtraDownloader.java
index f69fe26..33ebce7 100644
--- a/location/java/com/android/internal/location/GpsXtraDownloader.java
+++ b/location/java/com/android/internal/location/GpsXtraDownloader.java
@@ -71,11 +71,11 @@ public class GpsXtraDownloader {
if (server1 != null) mXtraServers[count++] = server1;
if (server2 != null) mXtraServers[count++] = server2;
if (server3 != null) mXtraServers[count++] = server3;
- }
-
- // randomize first server
- Random random = new Random();
- mNextServerIndex = random.nextInt(count);
+
+ // randomize first server
+ Random random = new Random();
+ mNextServerIndex = random.nextInt(count);
+ }
}
byte[] downloadXtraData() {