align navigation spinner with nav color

This commit is contained in:
sonora 2011-11-22 03:14:05 +01:00
parent 2175ad0c17
commit 3cd249711b
3 changed files with 8 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -62,7 +62,8 @@ public class AsyncLoadingThread extends Thread {
if (downloader.isSomethingBeingDownloaded()) {
progress = BusyIndicator.STATUS_GREEN;
} else if (resourceManger.getContext().getRoutingHelper().isRouteBeingCalculated()) {
progress = BusyIndicator.STATUS_BLUE;
// progress = BusyIndicator.STATUS_BLUE;
progress = BusyIndicator.STATUS_ORANGE;
} else if (!requests.isEmpty()) {
progress = BusyIndicator.STATUS_BLACK;
} else if(poiLoadRequest != null && poiLoadRequest.isRunning()) {

View file

@ -17,7 +17,8 @@ public class BusyIndicator {
public static final int STATUS_INVISIBLE = 0;
public static final int STATUS_GREEN = 1;
public static final int STATUS_BLUE = 2;
// public static final int STATUS_BLUE = 2;
public static final int STATUS_ORANGE = 2;
public static final int STATUS_BLACK = 3;
public BusyIndicator(Context ctx, View bar){
@ -48,8 +49,10 @@ public class BusyIndicator {
final Drawable drawable;
if(this.status == STATUS_BLACK){
drawable = ctx.getResources().getDrawable(R.drawable.spinner_black_76);
} else if(this.status == STATUS_BLUE){
drawable = ctx.getResources().getDrawable(R.drawable.spinner_blue_76);
// } else if(this.status == STATUS_BLUE){
// drawable = ctx.getResources().getDrawable(R.drawable.spinner_blue_76);
} else if(this.status == STATUS_ORANGE){
drawable = ctx.getResources().getDrawable(R.drawable.spinner_orange_76);
} else if(this.status == STATUS_GREEN){
drawable = ctx.getResources().getDrawable(R.drawable.spinner_green_76);
} else {