Fix blocker issue with route calculation

This commit is contained in:
Victor Shcherb 2012-01-25 01:16:12 +01:00
parent ea50c82122
commit 656e4c3a32

View file

@ -10,6 +10,7 @@ import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
@ -118,7 +119,11 @@ public class MapStackControl extends ViewGroup {
private Drawable getStackDrawable(int i){
while(i >= cacheStackDrawables.size()) {
cacheStackDrawables.add(getResources().getDrawable(stackDrawable).mutate());
Drawable d = getResources().getDrawable(stackDrawable);
if(Build.VERSION_CODES.FROYO <= Build.VERSION.SDK_INT) {
d = d.mutate();
}
cacheStackDrawables.add(d);
}
return cacheStackDrawables.get(i);
}