Map: only load stations that have a callsign to not crash Google Map

travis-ci
Georg Lukas 2020-08-29 20:21:57 +02:00
rodzic c4ddbd8675
commit f07b40984a
1 zmienionych plików z 4 dodań i 3 usunięć

Wyświetl plik

@ -49,9 +49,10 @@ trait MapLoaderBase extends MapMenuHelper {
val speed = c.getInt(COLUMN_MAP_SPEED)
val cse = c.getInt(COLUMN_MAP_CSE)
s.add(new Station(call, origin, symbol, lat/1000000.0d, lon/1000000.0d,
qrg, comment, speed, cse,
null))
if (call != null && !call.isEmpty)
s.add(new Station(call, origin, symbol, lat/1000000.0d, lon/1000000.0d,
qrg, comment, speed, cse,
null))
c.moveToNext()
}
c.close()