removed synchronation
from the animation thread's abort() Change-Id: I27488739805eda2422c87173b8d65d2680742958 Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
Binary file not shown.
@@ -43,7 +43,7 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
|||||||
|
|
||||||
private boolean isAborted;
|
private boolean isAborted;
|
||||||
|
|
||||||
public synchronized void abort(){
|
public void abort(){
|
||||||
isAborted = true;
|
isAborted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,7 +107,7 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
|||||||
|
|
||||||
private final String TAG = "UserOverlayBase";
|
private final String TAG = "UserOverlayBase";
|
||||||
private boolean isEnabled;
|
private boolean isEnabled;
|
||||||
private volatile int mUserArrow = R.drawable.user_arrow_animation_1;
|
private int mUserArrow = R.drawable.user_arrow_animation_1;
|
||||||
private AnimationThread mAnimationThread;
|
private AnimationThread mAnimationThread;
|
||||||
private float mBearing = 0;
|
private float mBearing = 0;
|
||||||
private int mAccuracy;
|
private int mAccuracy;
|
||||||
@@ -508,13 +508,6 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
|||||||
mCompass.setDestination(destination);
|
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
|
* UnResgisters the listener. after this call you will no longer get location updates
|
||||||
* @author Ricky Barrette
|
* @author Ricky Barrette
|
||||||
|
|||||||
Reference in New Issue
Block a user