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:
2012-03-05 08:28:47 -05:00
parent 2d53cf69cb
commit e1e1bea1ef
17 changed files with 747 additions and 21 deletions

View File

@@ -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);
}
}