forked from upstream-mirrors/OpenTracks
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.
|
// Make it an impossible location.
|
||||||
Location l = new Location("");
|
Location l = new Location("");
|
||||||
l.setLatitude(100);
|
l.setLatitude(100);
|
||||||
l.setLongitude(200);
|
l.setLongitude(180);
|
||||||
wpt.setLocation(l);
|
wpt.setLocation(l);
|
||||||
} else {
|
} else {
|
||||||
// A null location is ok, and expected on track start.
|
// A null location is ok, and expected on track start.
|
||||||
|
|||||||
Reference in New Issue
Block a user