From aeab97d163eac31d78d6cc6bd98c20d5f0f80a03 Mon Sep 17 00:00:00 2001 From: Herbert von Broeuschmeul Date: Tue, 26 Oct 2010 19:38:32 +0200 Subject: Correct first fix Actually there is always a first fix with lat=0 and lon=0. This modification should remove it. --- src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java index a86f17a..a381ac4 100644 --- a/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java +++ b/src/org/broeuschmeul/android/gps/nmea/util/NmeaParser.java @@ -36,7 +36,7 @@ import android.text.TextUtils.SimpleStringSplitter; import android.util.Log; public class NmeaParser { - private String fixTime; + private String fixTime = null; private long fixTimestamp; private boolean hasGGA = false; @@ -47,7 +47,7 @@ public class NmeaParser { private boolean mockGpsEnabled = false; private String mockLocationProvider = null; - private Location fix = new Location(mockLocationProvider); + private Location fix = null; public NmeaParser(){ this(5f); -- cgit v1.1