fix issue 91
git-svn-id: https://osmand.googlecode.com/svn/trunk@569 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
8927b9f41e
commit
4a340f7c46
7 changed files with 18 additions and 4 deletions
|
@ -9,7 +9,7 @@ public class ToDoConstants {
|
|||
|
||||
// TODO max 100
|
||||
// FOR 0.4 beta RELEASE
|
||||
// Profile
|
||||
// Profile vector rendering
|
||||
// fix issue with loading app (and not visible map)
|
||||
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="use_high_res_maps">Карта высокого разрешения</string>
|
||||
<string name="use_high_res_maps_descr">Отображать 1:1 карты для устройств высокого разрешения</string>
|
||||
<string name="unknown_location">В данный момент местоположение не определено</string>
|
||||
<string name="download_files_question">Загрузить {0} файл(ов)?</string>
|
||||
<string name="download_files">Загрузить</string>
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<resources>
|
||||
<string name="use_high_res_maps">High resolution map</string>
|
||||
<string name="use_high_res_maps_descr">Use high resolution map for high density devices</string>
|
||||
<string name="unknown_location">Сurrently location is unknown</string>
|
||||
<string name="download_files_question">Download {0} files?</string>
|
||||
<string name="download_files">Download</string>
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<ListPreference android:key="map_screen_orientation" android:title="@string/map_screen_orientation" android:summary="@string/map_screen_orientation_descr"></ListPreference>
|
||||
<ListPreference android:key="position_on_map" android:title="@string/position_on_map" android:summary="@string/position_on_map_descr"></ListPreference>
|
||||
<CheckBoxPreference android:key="use_trackball_for_movements" android:title="@string/use_trackball" android:summary="@string/use_trackball_descr"></CheckBoxPreference>
|
||||
<CheckBoxPreference android:key="use_high_res_maps" android:title="@string/use_high_res_maps" android:summary="@string/use_high_res_maps_descr"></CheckBoxPreference>
|
||||
</PreferenceScreen>
|
||||
|
||||
<PreferenceScreen android:title="@string/data_settings" android:summary="@string/data_settings_descr">
|
||||
|
|
|
@ -112,6 +112,14 @@ public class OsmandSettings {
|
|||
return prefs.getBoolean(USE_TRACKBALL_FOR_MOVEMENTS, USE_TRACKBALL_FOR_MOVEMENTS_DEF);
|
||||
}
|
||||
|
||||
// this value string is synchronized with settings_pref.xml preference name
|
||||
public static final String USE_HIGH_RES_MAPS = "use_high_res_maps"; //$NON-NLS-1$
|
||||
public static final boolean USE_HIGH_RES_MAPS_DEF = false;
|
||||
|
||||
public static boolean isUsingHighResMaps(SharedPreferences prefs) {
|
||||
return prefs.getBoolean(USE_HIGH_RES_MAPS, USE_HIGH_RES_MAPS_DEF);
|
||||
}
|
||||
|
||||
|
||||
// this value string is synchronized with settings_pref.xml preference name
|
||||
public static final String SHOW_POI_OVER_MAP = "show_poi_over_map"; //$NON-NLS-1$
|
||||
|
|
|
@ -100,6 +100,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
private BooleanPreference[] booleanPreferences = new BooleanPreference[]{
|
||||
new BooleanPreference(OsmandSettings.SHOW_VIEW_ANGLE, OsmandSettings.SHOW_VIEW_ANGLE_DEF),
|
||||
new BooleanPreference(OsmandSettings.USE_TRACKBALL_FOR_MOVEMENTS, OsmandSettings.USE_TRACKBALL_FOR_MOVEMENTS_DEF),
|
||||
new BooleanPreference(OsmandSettings.USE_HIGH_RES_MAPS, OsmandSettings.USE_HIGH_RES_MAPS_DEF),
|
||||
new BooleanPreference(OsmandSettings.USE_ENGLISH_NAMES, OsmandSettings.USE_ENGLISH_NAMES_DEF),
|
||||
new BooleanPreference(OsmandSettings.AUTO_ZOOM_MAP, OsmandSettings.AUTO_ZOOM_MAP_DEF),
|
||||
new BooleanPreference(OsmandSettings.SAVE_TRACK_TO_GPX, OsmandSettings.SAVE_TRACK_TO_GPX_DEF),
|
||||
|
|
|
@ -225,9 +225,9 @@ public class OsmandMapTileView extends SurfaceView implements IMapDownloaderCall
|
|||
// that trigger allows to scale tiles for certain devices
|
||||
// for example for device with density > 1 draw tiles the same size as with density = 1
|
||||
// It makes text bigger but blurry, the settings could be introduced for that
|
||||
// if (dm != null && dm.density > 1f) {
|
||||
// res *= dm.density;
|
||||
// }
|
||||
if (dm != null && dm.density > 1f && !OsmandSettings.isUsingHighResMaps(getSettings()) ) {
|
||||
res *= dm.density;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue