mirror of
https://codeberg.org/OpenTracksApp/OpenTracks.git
synced 2026-10-02 09:33:06 +02:00
Make the impossible null location slightly less impossible so Location doesn't throw an
exception anymore.
This commit is contained in:
@@ -902,7 +902,7 @@ public class TrackRecordingService extends Service implements LocationListener {
|
||||
// Make it an impossible location.
|
||||
Location l = new Location("");
|
||||
l.setLatitude(100);
|
||||
l.setLongitude(200);
|
||||
l.setLongitude(180);
|
||||
wpt.setLocation(l);
|
||||
} else {
|
||||
// A null location is ok, and expected on track start.
|
||||
|
||||
Reference in New Issue
Block a user