try orange spinner to indicate destination-related activity and slightly more visibility at night

This commit is contained in:
sonora 2012-09-03 17:56:06 +02:00
parent dd3a500b65
commit 2b036eacf6
5 changed files with 4 additions and 4 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View file

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

View file

@ -17,7 +17,7 @@ public class BusyIndicator {
public static final int STATUS_INVISIBLE = 0; public static final int STATUS_INVISIBLE = 0;
public static final int STATUS_GREEN = 1; public static final int STATUS_GREEN = 1;
public static final int STATUS_BLUE = 2; public static final int STATUS_ORANGE = 2;
public static final int STATUS_BLACK = 3; public static final int STATUS_BLACK = 3;
public BusyIndicator(Context ctx, View bar){ public BusyIndicator(Context ctx, View bar){
@ -45,8 +45,8 @@ public class BusyIndicator {
final Drawable drawable; final Drawable drawable;
if(this.status == STATUS_BLACK){ if(this.status == STATUS_BLACK){
drawable = ctx.getResources().getDrawable(R.drawable.progress_grey); drawable = ctx.getResources().getDrawable(R.drawable.progress_grey);
} else if(this.status == STATUS_BLUE){ } else if(this.status == STATUS_ORANGE){
drawable = ctx.getResources().getDrawable(R.drawable.progress_blue); drawable = ctx.getResources().getDrawable(R.drawable.progress_orange);
} else if(this.status == STATUS_GREEN){ } else if(this.status == STATUS_GREEN){
drawable = ctx.getResources().getDrawable(R.drawable.progress_green); drawable = ctx.getResources().getDrawable(R.drawable.progress_green);
} else { } else {