diff --git a/LocationLib/bin/locationlib.jar b/LocationLib/bin/locationlib.jar index 2841e46..c0fe828 100644 Binary files a/LocationLib/bin/locationlib.jar and b/LocationLib/bin/locationlib.jar differ diff --git a/LocationLib/res/layout/map_fragment.xml b/LocationLib/res/layout/map_fragment.xml index fd6dccd..f6e66ed 100644 --- a/LocationLib/res/layout/map_fragment.xml +++ b/LocationLib/res/layout/map_fragment.xml @@ -4,9 +4,8 @@ ricky 0rKmsWMM0D-LWOndcfwrmW-S0OXlnQl2SJCMeTg TWENTYCODES 0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q --> - + android:apiKey="0rKmsWMM0D-K15bEM_kwabPbNhsn4dp4rcq2q5Q" /> \ No newline at end of file diff --git a/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java b/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java index 1325b4e..96408f0 100644 --- a/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java +++ b/LocationLib/src/com/TwentyCodes/android/location/MidPoint.java @@ -11,7 +11,7 @@ import com.google.android.maps.GeoPoint; * This MidPoint object will hold the information form the calculations performed by GeoUtils.midPoint(). * @author ricky barrette */ -public class MidPoint { +public final class MidPoint { private final int mMinLatitude; private final int mMaxLatitude; diff --git a/LocationLib/src/com/TwentyCodes/android/location/UserOverlayBase.java b/LocationLib/src/com/TwentyCodes/android/location/UserOverlayBase.java index 2f842ce..e20ac41 100644 --- a/LocationLib/src/com/TwentyCodes/android/location/UserOverlayBase.java +++ b/LocationLib/src/com/TwentyCodes/android/location/UserOverlayBase.java @@ -43,7 +43,7 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio private boolean isAborted; - public void abort(){ + public synchronized void abort(){ isAborted = true; } @@ -104,10 +104,10 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio } } + private final String TAG = "UserOverlayBase"; private boolean isEnabled; - private int mUserArrow = R.drawable.user_arrow_animation_1; - + private volatile int mUserArrow = R.drawable.user_arrow_animation_1; private AnimationThread mAnimationThread; private float mBearing = 0; private int mAccuracy; @@ -508,6 +508,13 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio mCompass.setDestination(destination); } +// /** +// * Sets whether or not the users location is enabled +// * @param isEnabled +// * @author ricky barrette +// */ +// public abstract void setMyLocationEnabled(boolean isEnabled); + /** * UnResgisters the listener. after this call you will no longer get location updates * @author Ricky Barrette