Skip to content

Commit

Permalink
Merge pull request #704 from rksh/outlier_stability_fixes
Browse files Browse the repository at this point in the history
[FIX} pretty weird corner case
  • Loading branch information
bobzilladev authored Jun 30, 2024
2 parents fa2825f + 401a4c2 commit 07a1983
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 07a1983

Please sign in to comment.