don’t throw error if location is not set
This commit is contained in:
parent
df839b4c03
commit
eefd8134c3
1 changed files with 3 additions and 2 deletions
|
@ -103,7 +103,8 @@ public class MapFragment extends FragmentBase<FragmentMapBinding> {
|
|||
var map = this.getBinding().map;
|
||||
map.getOverlays().clear();
|
||||
this.subscribe(this.getClient().toObservable()
|
||||
.flatMap(client -> client.streamObjects().toObservable()),
|
||||
.flatMap(client -> client.streamObjects().toObservable())
|
||||
.filter(item -> item.lastKnownLocation().isPresent()),
|
||||
this::addMarker);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue