Update icons

This commit is contained in:
Victor Shcherb 2015-03-15 16:35:17 +01:00
parent 7fd1d625a2
commit fb55113c38
4 changed files with 6 additions and 4 deletions

View file

@ -22,6 +22,7 @@
android:id="@+id/MapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/btn_flat"
android:contentDescription="@string/shared_string_map"
android:visibility="gone" />

View file

@ -40,7 +40,6 @@
android:shadowColor="@color/color_myloc_distance"
android:textColor="@color/color_black"
android:shadowRadius="10"
android:textStyle="bold"
android:textSize="@dimen/map_widget_text_size"
android:text="1048" />
<TextView
@ -55,7 +54,6 @@
android:shadowColor="@color/color_myloc_distance"
android:textColor="@color/color_black"
android:shadowRadius="10"
android:textStyle="bold"
android:textSize="@dimen/map_widget_text_size_small"
android:text="km" />
</LinearLayout>

View file

@ -338,6 +338,10 @@ public class MapInfoWidgetsFactory {
RouteDirectionInfo next = routingHelper.getRouteDirections().get(di);
type[0] = next.getTurnType();
text = RoutingHelper.formatStreetName(next.getStreetName(), next.getRef(), next.getDestinationName());
if(next.distance > 0) {
text += " " + OsmAndFormatter.getFormattedDistance(next.distance, map.getMyApplication());
}
}
}
} else if(settings.getApplicationMode() != ApplicationMode.DEFAULT &&

View file

@ -43,7 +43,6 @@ public class NextTurnInfoWidget extends TextInfoWidget {
setImageDrawable(null, false);
setTopImageDrawable(turnDrawable, true);
}
updateVisibility(false);
}
public TurnType getTurnType() {
@ -51,6 +50,7 @@ public class NextTurnInfoWidget extends TextInfoWidget {
}
public void setTurnType(TurnType turnType) {
updateVisibility(turnType != null);
if (turnDrawable.setTurnType(turnType)) {
if(horisontalMini) {
setImageDrawable(turnDrawable, false);
@ -58,7 +58,6 @@ public class NextTurnInfoWidget extends TextInfoWidget {
setTopImageDrawable(turnDrawable, true);
}
}
updateVisibility(turnType != null);
}
public void setTurnImminent(int turnImminent, boolean deviatedFromRoute) {