summaryrefslogtreecommitdiffstats
path: root/location/java
diff options
context:
space:
mode:
authorAndroid (Google) Code Review <android-gerrit@google.com>2009-04-28 16:18:07 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2009-04-28 16:18:07 -0700
commit5f2788bc9d947f7793aaea06f7e21d6b74c98826 (patch)
tree16e6f90f5769c02c1d5c1168930c8d2f2e5aab59 /location/java
parent0124a150157d69a9f0ea109be2390afb5399b8a7 (diff)
parentb8526bfe091d4a5948f6e3165357bb9bd4bfebbf (diff)
downloadframeworks_base-5f2788bc9d947f7793aaea06f7e21d6b74c98826.zip
frameworks_base-5f2788bc9d947f7793aaea06f7e21d6b74c98826.tar.gz
frameworks_base-5f2788bc9d947f7793aaea06f7e21d6b74c98826.tar.bz2
Merge change 686 into donut
* changes: 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 b8545a6..2a8be57 100644
--- a/location/java/com/android/internal/location/GpsXtraDownloader.java
+++ b/location/java/com/android/internal/location/GpsXtraDownloader.java
@@ -70,11 +70,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() {