moreDetail switch (1)

This commit is contained in:
sonora 2011-08-25 11:30:53 +02:00
parent e52ead2d2d
commit 0b03396002
5 changed files with 10 additions and 0 deletions

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<resources>
<string name="show_more_map_detail">Show more map detail</string>
<string name="show_more_map_detail_descr">Show some vector map detail (roads etc.) at lower zooms already</string>
<string name="favourites_delete_multiple_succesful">Favorite points deleted successfully.</string>
<string name="favorite_delete_multiple">You are going to delete %1$d favorites and %2$d favorite groups. Are you sure?</string>
<string name="favorite_home_category">Home</string>

View file

@ -10,6 +10,8 @@
<ListPreference android:title="@string/map_tile_source" android:summary="@string/map_tile_source_descr" android:key="map_tile_sources"></ListPreference>
<CheckBoxPreference android:summary="@string/use_english_names_descr" android:title="@string/use_english_names"
android:key="use_english_names"></CheckBoxPreference>
<CheckBoxPreference android:key="show_more_map_detail" android:title="@string/show_more_map_detail"
android:summary="@string/show_more_map_detail_descr"></CheckBoxPreference>
<ListPreference android:key="renderer" android:title="@string/renderers" android:summary="@string/renderers_descr"></ListPreference>
<ListPreference android:key="daynight_mode" android:title="@string/daynight" android:summary="@string/daynight_descr"></ListPreference>
<ListPreference android:title="@string/level_to_switch_vector_raster" android:summary="@string/level_to_switch_vector_raster_descr"

View file

@ -547,6 +547,9 @@ public class OsmandSettings {
return USE_ENGLISH_NAMES.get();
}
// this value string is synchronized with settings_pref.xml preference name
public final OsmandPreference<Boolean> SHOW_MORE_MAP_DETAIL = new BooleanPreference("show_more_map_detail", false, true);
// this value string is synchronized with settings_pref.xml preference name
public final CommonPreference<Boolean> USE_STEP_BY_STEP_RENDERING = new BooleanPreference("use_step_by_step_rendering",
true, false);

View file

@ -158,6 +158,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
registerBooleanPreference(osmandSettings.USE_TRACKBALL_FOR_MOVEMENTS,screen);
registerBooleanPreference(osmandSettings.USE_HIGH_RES_MAPS,screen);
registerBooleanPreference(osmandSettings.USE_ENGLISH_NAMES,screen);
registerBooleanPreference(osmandSettings.SHOW_MORE_MAP_DETAIL,screen);
registerBooleanPreference(osmandSettings.AUTO_ZOOM_MAP,screen);
registerBooleanPreference(osmandSettings.SAVE_TRACK_TO_GPX,screen);
registerBooleanPreference(osmandSettings.DEBUG_RENDERING_INFO,screen);

View file

@ -395,6 +395,7 @@ public class MapRenderRepositories {
currentRenderingContext.nightMode = nightMode;
currentRenderingContext.highResMode = prefs.USE_HIGH_RES_MAPS.get();
currentRenderingContext.mapTextSize = prefs.MAP_TEXT_SIZE.get();
currentRenderingContext.moreDetail = prefs.SHOW_MORE_MAP_DETAIL.get();
if (checkWhetherInterrupted()) {
return;
}