Refactored the entire library
I also moved the directions listfragment, overlay, and other required classes from FMC into the library Change-Id: Iba27e29d89e864dbeca3a2670aed552a8be4f2b8 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* @author Twenty Codes, LLC
|
||||
* @author ricky barrette
|
||||
* @date Dec 28, 2010
|
||||
*/
|
||||
package com.TwentyCodes.android.overlays;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import com.TwentyCodes.android.location.AndroidGPS;
|
||||
import com.google.android.maps.MapView;
|
||||
|
||||
/**
|
||||
* This is the standard version of the UserOverlay.
|
||||
* @author ricky barrette
|
||||
*/
|
||||
public class UserOverlay extends UserOverlayBase{
|
||||
|
||||
private AndroidGPS mAndroidGPS;
|
||||
|
||||
public UserOverlay(MapView mapView, Context context) {
|
||||
super(mapView, context);
|
||||
mAndroidGPS = new AndroidGPS(context);
|
||||
}
|
||||
|
||||
public UserOverlay(MapView mapView, Context context, boolean followUser) {
|
||||
super(mapView, context, followUser);
|
||||
mAndroidGPS = new AndroidGPS(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMyLocationDisabled() {
|
||||
mAndroidGPS.disableLocationUpdates();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMyLocationEnabled() {
|
||||
mAndroidGPS.enableLocationUpdates(this);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user