Updated Compat library and cleaned up code
Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -11,23 +11,28 @@ import com.TwentyCodes.android.location.AndroidGPS;
|
||||
import com.google.android.maps.MapView;
|
||||
|
||||
/**
|
||||
* This is the standard version of the UserOverlay.
|
||||
* This is the standard version of the UserOverlay.
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public class UserOverlay extends BaseUserOverlay{
|
||||
|
||||
private final AndroidGPS mAndroidGPS;
|
||||
|
||||
public UserOverlay(MapView mapView, Context context) {
|
||||
public UserOverlay(final MapView mapView, final Context context) {
|
||||
super(mapView, context);
|
||||
mAndroidGPS = new AndroidGPS(context);
|
||||
}
|
||||
|
||||
public UserOverlay(MapView mapView, Context context, boolean followUser) {
|
||||
|
||||
public UserOverlay(final MapView mapView, final Context context, final boolean followUser) {
|
||||
super(mapView, context, followUser);
|
||||
mAndroidGPS = new AndroidGPS(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstFix(final boolean isFistFix) {
|
||||
// unused
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMyLocationDisabled() {
|
||||
mAndroidGPS.disableLocationUpdates();
|
||||
@@ -38,9 +43,4 @@ public class UserOverlay extends BaseUserOverlay{
|
||||
mAndroidGPS.enableLocationUpdates(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onFirstFix(boolean isFistFix) {
|
||||
// unused
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user