Skip to content

Commit

Permalink
pretty weird case
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Carra committed Jun 19, 2024
1 parent fa2825f commit 401a4c2
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,16 @@ public void complete() {
stopAnimation();
LatLngBounds.Builder builder = new LatLngBounds.Builder();
boolean hasValidPoints = false;
for (Network n : resultList) {
listAdapter.add(n);
mapRender.addItem(n);
final LatLng ll = n.getPosition();
//noinspection ConstantConditions
if (ll != null) {
builder.include(ll);
hasValidPoints = true;
if (null != mapRender) {
for (Network n : resultList) {
listAdapter.add(n);
mapRender.addItem(n);
final LatLng ll = n.getPosition();
//noinspection ConstantConditions
if (ll != null) {
builder.include(ll);
hasValidPoints = true;
}
}
}
if (hasValidPoints) {
Expand Down

0 comments on commit 401a4c2

Please sign in to comment.