Fix seek bar preference
This commit is contained in:
parent
621dd12e6d
commit
d79ce9f053
2 changed files with 5 additions and 1 deletions
|
@ -8,6 +8,7 @@
|
|||
If you are making/correcting english translations make sure :
|
||||
1. All your modified/created strings are in the top of the file (to make easier find what's translated).
|
||||
-->
|
||||
<string name="modify_transparency">Modify transparency (0 - transparent, 255 - opaque)</string>
|
||||
<string name="confirm_interrupt_download">Do you want to interrupt file downloading?</string>
|
||||
<string name="first_time_msg">To use the major features of this application, you need some regional offline data, which you can download (use Settings, Offline Data). Afterwards, you will be able to search by address, look up POIs and find public transportation.</string>
|
||||
<string name="basemap_was_selected_to_download">Basemap is required for proper application functioning and was selected to download.</string>
|
||||
|
@ -442,7 +443,6 @@
|
|||
<string name="overlay_transparency">Overlay transparency</string>
|
||||
<string name="map_transparency_descr">Modify base map transparency</string>
|
||||
<string name="map_transparency">Base map transparency</string>
|
||||
<string name="modify_transparency">Modify transparency</string>
|
||||
<string name="layer_underlay">Underlay map…</string>
|
||||
<string name="map_underlay">Underlay map</string>
|
||||
<string name="map_underlay_descr">Choose underlay map</string>
|
||||
|
|
|
@ -95,6 +95,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
public CheckBoxPreference createCheckBoxPreference(OsmandPreference<Boolean> b, int title, int summary){
|
||||
CheckBoxPreference p = new CheckBoxPreference(this);
|
||||
p.setTitle(title);
|
||||
p.setKey(b.getId());
|
||||
p.setSummary(summary);
|
||||
p.setOnPreferenceChangeListener(this);
|
||||
screenPreferences.put(b.getId(), p);
|
||||
|
@ -113,6 +114,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
int defValue, int maxValue){
|
||||
SeekBarPreference p = new SeekBarPreference(this, dialogTextId, defValue, maxValue);
|
||||
p.setTitle(title);
|
||||
p.setKey(b.getId());
|
||||
p.setSummary(summary);
|
||||
p.setOnPreferenceChangeListener(this);
|
||||
screenPreferences.put(b.getId(), p);
|
||||
|
@ -128,6 +130,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
public <T> ListPreference createListPreference(OsmandPreference<T> b, String[] names, T[] values, int title, int summary){
|
||||
ListPreference p = new ListPreference(this);
|
||||
p.setTitle(title);
|
||||
p.setKey(b.getId());
|
||||
p.setDialogTitle(title);
|
||||
p.setSummary(summary);
|
||||
prepareListPreference(b, names, values, p);
|
||||
|
@ -156,6 +159,7 @@ public class SettingsActivity extends PreferenceActivity implements OnPreference
|
|||
public EditTextPreference createEditTextPreference(OsmandPreference<String> b, int title, int summary){
|
||||
EditTextPreference p = new EditTextPreference(this);
|
||||
p.setTitle(title);
|
||||
p.setKey(b.get());
|
||||
p.setDialogTitle(title);
|
||||
p.setSummary(summary);
|
||||
p.setOnPreferenceChangeListener(this);
|
||||
|
|
Loading…
Reference in a new issue