am 5f2788b: Merge change 686 into donut
Merge commit '5f2788bc9d947f7793aaea06f7e21d6b74c98826' * commit '5f2788bc9d947f7793aaea06f7e21d6b74c98826': gps: Don't crash if no XTRA servers are specified.
This commit is contained in:
committed by
The Android Open Source Project
commit
77c8adf9ff
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user