UserOverlayBase.java
removed the synchronized modifier from AnimationThread.abort() the prevent ANR's
BIN
LocationLib/bin/res/drawable-hdpi/map_action_bar.png
Normal file
|
After Width: | Height: | Size: 898 B |
BIN
LocationLib/bin/res/drawable-hdpi/map_mode_action_bar.png
Normal file
|
After Width: | Height: | Size: 760 B |
|
After Width: | Height: | Size: 751 B |
BIN
LocationLib/bin/res/drawable-hdpi/my_location_action_bar.png
Normal file
|
After Width: | Height: | Size: 466 B |
BIN
LocationLib/bin/res/drawable-hdpi/nav_action_bar.png
Normal file
|
After Width: | Height: | Size: 776 B |
BIN
LocationLib/bin/res/drawable-ldpi/map_action_bar.png
Normal file
|
After Width: | Height: | Size: 527 B |
BIN
LocationLib/bin/res/drawable-ldpi/map_mode_action_bar.png
Normal file
|
After Width: | Height: | Size: 417 B |
|
After Width: | Height: | Size: 473 B |
BIN
LocationLib/bin/res/drawable-ldpi/my_location_action_bar.png
Normal file
|
After Width: | Height: | Size: 276 B |
BIN
LocationLib/bin/res/drawable-ldpi/nav_action_bar.png
Normal file
|
After Width: | Height: | Size: 410 B |
BIN
LocationLib/bin/res/drawable-mdpi/map_action_bar.png
Normal file
|
After Width: | Height: | Size: 664 B |
BIN
LocationLib/bin/res/drawable-mdpi/map_mode_action_bar.png
Normal file
|
After Width: | Height: | Size: 567 B |
|
After Width: | Height: | Size: 608 B |
BIN
LocationLib/bin/res/drawable-mdpi/my_location_action_bar.png
Normal file
|
After Width: | Height: | Size: 359 B |
BIN
LocationLib/bin/res/drawable-mdpi/nav_action_bar.png
Normal file
|
After Width: | Height: | Size: 523 B |
BIN
LocationLib/bin/res/drawable-xhdpi/map_action_bar.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
LocationLib/bin/res/drawable-xhdpi/map_mode_action_bar.png
Normal file
|
After Width: | Height: | Size: 949 B |
|
After Width: | Height: | Size: 943 B |
BIN
LocationLib/bin/res/drawable-xhdpi/my_location_action_bar.png
Normal file
|
After Width: | Height: | Size: 579 B |
BIN
LocationLib/bin/res/drawable-xhdpi/nav_action_bar.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
LocationLib/bin/res/drawable/compass.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
LocationLib/bin/res/drawable/compass_lrg.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
LocationLib/bin/res/drawable/compass_med.png
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
BIN
LocationLib/bin/res/drawable/compass_sm.png
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
LocationLib/bin/res/drawable/logoidea3.png
Normal file
|
After Width: | Height: | Size: 136 KiB |
BIN
LocationLib/bin/res/drawable/needle.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
LocationLib/bin/res/drawable/needle_lrg.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
LocationLib/bin/res/drawable/needle_med.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
LocationLib/bin/res/drawable/needle_sm.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
LocationLib/bin/res/drawable/skyhook_logo_alpha.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
LocationLib/bin/res/drawable/skyhook_logo_alpha_small.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
LocationLib/bin/res/drawable/tc_logo_complete.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
LocationLib/bin/res/drawable/user.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
LocationLib/bin/res/drawable/user_arrow_animation_1.png
Normal file
|
After Width: | Height: | Size: 825 B |
BIN
LocationLib/bin/res/drawable/user_arrow_animation_2.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
LocationLib/bin/res/drawable/user_arrow_animation_3.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
@@ -43,7 +43,7 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
||||
|
||||
private boolean isAborted;
|
||||
|
||||
public synchronized void abort(){
|
||||
public void abort(){
|
||||
isAborted = true;
|
||||
}
|
||||
|
||||
@@ -65,13 +65,13 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
||||
|
||||
switch(index){
|
||||
case 1:
|
||||
setDrawable(R.drawable.user_arrow_animation_2);
|
||||
mUserArrow = R.drawable.user_arrow_animation_2;
|
||||
break;
|
||||
case 2:
|
||||
setDrawable(R.drawable.user_arrow_animation_3);
|
||||
mUserArrow = R.drawable.user_arrow_animation_3;
|
||||
break;
|
||||
default:
|
||||
setDrawable(R.drawable.user_arrow_animation_1);
|
||||
mUserArrow = R.drawable.user_arrow_animation_1;
|
||||
try {
|
||||
sleep(300l);
|
||||
} catch (InterruptedException e) {
|
||||
@@ -97,15 +97,6 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the id of the user drawable
|
||||
* @param id
|
||||
* @author ricky barrette
|
||||
*/
|
||||
private synchronized void setDrawable(int id){
|
||||
mUserArrow = id;
|
||||
}
|
||||
}
|
||||
private final String TAG = "UserOverlayBase";
|
||||
private boolean isEnabled;
|
||||
@@ -181,9 +172,9 @@ public abstract class UserOverlayBase extends Overlay implements GeoPointLocatio
|
||||
onMyLocationDisabled();
|
||||
isEnabled = false;
|
||||
mCompass.disable();
|
||||
mAnimationThread.abort();
|
||||
if(mGPSprogress != null)
|
||||
mGPSprogress.cancel();
|
||||
mAnimationThread.abort();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||