New icons for widgets.

This commit is contained in:
GaidamakUA 2016-03-31 17:41:09 +03:00
parent 88cffc0740
commit d9f7ac5a50
2 changed files with 2 additions and 2 deletions

View file

@ -111,7 +111,7 @@ public class OsmandDevelopmentPlugin extends OsmandPlugin {
final OsmandMapTileView mv = activity.getMapView(); final OsmandMapTileView mv = activity.getMapView();
if (mapInfoLayer != null && mapInfoLayer.getSideWidget(FPSTextInfoWidget.class) == null) { if (mapInfoLayer != null && mapInfoLayer.getSideWidget(FPSTextInfoWidget.class) == null) {
FPSTextInfoWidget fps = new FPSTextInfoWidget(mv, activity); FPSTextInfoWidget fps = new FPSTextInfoWidget(mv, activity);
mapInfoLayer.registerSideWidget(fps, R.drawable.widget_no_icon, mapInfoLayer.registerSideWidget(fps, R.drawable.ic_action_fps,
R.string.map_widget_fps_info, "fps", false, 30); R.string.map_widget_fps_info, "fps", false, 30);
mapInfoLayer.recreateControls(); mapInfoLayer.recreateControls();
} }

View file

@ -134,7 +134,7 @@ public class MapInfoLayer extends OsmandMapLayer {
TextInfoWidget gpsInfo = mic.createGPSInfoControl(map); TextInfoWidget gpsInfo = mic.createGPSInfoControl(map);
registerSideWidget(gpsInfo, R.drawable.ic_action_gps_info, R.string.map_widget_gps_info, "gps_info", false, 17); registerSideWidget(gpsInfo, R.drawable.ic_action_gps_info, R.string.map_widget_gps_info, "gps_info", false, 17);
TextInfoWidget maxspeed = ric.createMaxSpeedControl(map); TextInfoWidget maxspeed = ric.createMaxSpeedControl(map);
registerSideWidget(maxspeed, R.drawable.ic_action_max_speed, R.string.map_widget_max_speed, "max_speed", false, 18); registerSideWidget(maxspeed, R.drawable.ic_action_speed_limit, R.string.map_widget_max_speed, "max_speed", false, 18);
TextInfoWidget alt = mic.createAltitudeControl(map); TextInfoWidget alt = mic.createAltitudeControl(map);
registerSideWidget(alt, R.drawable.ic_action_altitude, R.string.map_widget_altitude, "altitude", false, 20); registerSideWidget(alt, R.drawable.ic_action_altitude, R.string.map_widget_altitude, "altitude", false, 20);
TextInfoWidget plainTime = ric.createPlainTimeControl(map); TextInfoWidget plainTime = ric.createPlainTimeControl(map);