diff --git a/OsmAnd/res/drawable-hdpi/ic_altitude.png b/OsmAnd/res/drawable-hdpi/ic_altitude.png new file mode 100644 index 0000000000..b7d683d1e3 Binary files /dev/null and b/OsmAnd/res/drawable-hdpi/ic_altitude.png differ diff --git a/OsmAnd/res/drawable-hdpi/info_time_to_go.png b/OsmAnd/res/drawable-hdpi/info_time_to_go.png index 3d9f7be414..3aad2492aa 100644 Binary files a/OsmAnd/res/drawable-hdpi/info_time_to_go.png and b/OsmAnd/res/drawable-hdpi/info_time_to_go.png differ diff --git a/OsmAnd/res/drawable-large/ic_altitude.png b/OsmAnd/res/drawable-large/ic_altitude.png new file mode 100644 index 0000000000..b7d683d1e3 Binary files /dev/null and b/OsmAnd/res/drawable-large/ic_altitude.png differ diff --git a/OsmAnd/res/drawable-large/info_time_to_go.png b/OsmAnd/res/drawable-large/info_time_to_go.png index 3d9f7be414..3aad2492aa 100644 Binary files a/OsmAnd/res/drawable-large/info_time_to_go.png and b/OsmAnd/res/drawable-large/info_time_to_go.png differ diff --git a/OsmAnd/res/drawable/ic_altitude.png b/OsmAnd/res/drawable/ic_altitude.png new file mode 100644 index 0000000000..03be176005 Binary files /dev/null and b/OsmAnd/res/drawable/ic_altitude.png differ diff --git a/OsmAnd/res/drawable/info_time_to_go.png b/OsmAnd/res/drawable/info_time_to_go.png index f0e54881a2..dc13e50473 100644 Binary files a/OsmAnd/res/drawable/info_time_to_go.png and b/OsmAnd/res/drawable/info_time_to_go.png differ diff --git a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java index 2185bd25ea..b1c52c4632 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java +++ b/OsmAnd/src/net/osmand/plus/activities/SettingsActivity.java @@ -175,6 +175,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference registerBooleanPreference(osmandSettings.TRANSPARENT_MAP_THEME,screen); registerBooleanPreference(osmandSettings.TEST_ANIMATE_ROUTING,screen); registerBooleanPreference(osmandSettings.NATIVE_RENDERING,screen); + registerBooleanPreference(osmandSettings.SHOW_ALTITUDE_INFO,screen); registerEditTextPreference(osmandSettings.USER_NAME, screen); registerEditTextPreference(osmandSettings.USER_PASSWORD, screen); diff --git a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java index 84d67eca48..2d85c23e6d 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapInfoLayer.java @@ -7,7 +7,6 @@ import net.osmand.osm.LatLon; import net.osmand.plus.R; import net.osmand.plus.activities.MapActivity; import net.osmand.plus.routing.RoutingHelper.RouteDirectionInfo; -import net.osmand.plus.routing.RoutingHelper.TurnType; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; @@ -278,6 +277,7 @@ public class MapInfoLayer extends OsmandMapLayer { } }; altitudeControl.setText(null, null); + altitudeControl.setImageDrawable(view.getResources().getDrawable(R.drawable.ic_altitude)); return altitudeControl; }