diff options
-rw-r--r-- | AriesParts/res/values-nl/strings.xml | 41 | ||||
-rw-r--r-- | AriesParts/src/com/cyanogenmod/settings/device/VolumeBoostPreference.java | 10 |
2 files changed, 46 insertions, 5 deletions
diff --git a/AriesParts/res/values-nl/strings.xml b/AriesParts/res/values-nl/strings.xml index 2edb544..83476c6 100644 --- a/AriesParts/res/values-nl/strings.xml +++ b/AriesParts/res/values-nl/strings.xml @@ -8,6 +8,11 @@ <string name="color_red_title">Rood</string> <string name="color_green_title">Groen</string> <string name="color_blue_title">Blauw</string> + <string name="color_red_gamma_title">Rood gamma</string> + <string name="color_green_gamma_title">Groen gamma</string> + <string name="color_blue_gamma_title">Blauw gamma</string> + <string name="mdnie_title_head">mDNIe-modus</string> + <string name="mdnie_summary_head">mDNIe-schermnabewerking aanpassen</string> <string name="category_touchkey_title">Aanraakknoppen</string> <string name="backlight_timeout_title_head">Time-out achtergrondverlichting</string> @@ -24,4 +29,40 @@ <string name="tvout_enable_summary_on">Tv-uitvoer ingeschakeld</string> <string name="tvout_system_head">Tv-systeem</string> <string name="tvout_system_summary">Tv-systeem instellen voor tv-uitvoer</string> + + <string name="category_volume_boost_title">Volume-instellingen</string> + <string name="volume_boost_title_head">Volume-instellingen tijdens gesprek</string> + <string name="volume_boost_summary_head">Instellingen voor volumeverhoging tijdens gesprek</string> + <string name="boost_rcv_title">Volume oortelefoon</string> + <string name="boost_bt_title">Volume via bluetooth</string> + <string name="boost_spk_title">Volume luidspreker</string> + <string name="boost_hp_title">Volume headset</string> + <string name="mic_rcv_title">Microfoon van oortelefoon</string> + <string name="mic_spk_title">Microfoon van luidspreker</string> + <string name="mic_hp_title">Microfoon van headset</string> + <string name="mic_hp_no_mic_title">Microfoon bij koptelefoon (zonder microfoon)</string> + + <string name="category_dock_audio_title">Dock-geluid</string> + <string name="cardock_audio_title_head">Auto-dock</string> + <string name="cardock_audio_summary_on">Auto-dock-geluid ingeschakeld</string> + <string name="cardock_audio_summary_off">Auto-dock-geluid uitgeschakeld</string> + <string name="deskdock_audio_title_head">Bureau-dock</string> + <string name="deskdock_audio_summary_on">Bureau-dock-geluid ingeschakeld</string> + <string name="deskdock_audio_summary_off">Bureau-dock-geluid uitgeschakeld</string> + + <string name="category_vibration_title">Trillen</string> + <string name="vibration_title_head">Trillen</string> + <string name="vibration_summary_head">Trilintensiteit instellen</string> + <string name="vibration_title">Trilintensiteit</string> + <string name="vibration_test_title">Test</string> + + <!-- Used for activity title. Usually not visible, except on the + multi-task screen --> + <string name="generic_warning_title">Let op</string> + + <!-- Invalid IMEI --> + <string name="imei_not_sane_title">Let op</string> + <string name="imei_not_sane_message">Er is een probleem gevonden met uw telefoon. Het IMEI-nummer van uw telefoon is ongeldig. Hierdoor kunnen problemen optreden met uw mobiele netwerkverbinding, inclusief het niet kunnen bellen van het alarmnummer.</string> + <string name="imei_not_sane_ok">OK</string> + </resources> diff --git a/AriesParts/src/com/cyanogenmod/settings/device/VolumeBoostPreference.java b/AriesParts/src/com/cyanogenmod/settings/device/VolumeBoostPreference.java index efbf293..f168314 100644 --- a/AriesParts/src/com/cyanogenmod/settings/device/VolumeBoostPreference.java +++ b/AriesParts/src/com/cyanogenmod/settings/device/VolumeBoostPreference.java @@ -63,7 +63,7 @@ public class VolumeBoostPreference extends DialogPreference { private static final int BOOST_DEFAULT_VALUE = 2; private static final int BOOST_MAX_VALUE = 3; - private static final int[] MIC_DEFAULT_VALUE = new int[] { 19, 31, 29, 18 }; + private static final int MIC_DEFAULT_VALUE = 18; private static final int MIC_MAX_VALUE = 31; // Track instances to know when to restore original value @@ -91,7 +91,7 @@ public class VolumeBoostPreference extends DialogPreference { for (int i = 0; i < MIC_SEEKBAR_ID.length; i++) { SeekBar seekBar = (SeekBar) view.findViewById(MIC_SEEKBAR_ID[i]); TextView valueDisplay = (TextView) view.findViewById(MIC_VALUE_DISPLAY_ID[i]); - mSeekBars[SEEKBAR_ID.length + i] = new MicSeekBar(seekBar, valueDisplay, MIC_FILE_PATH[i], i); + mSeekBars[SEEKBAR_ID.length + i] = new MicSeekBar(seekBar, valueDisplay, MIC_FILE_PATH[i]); } } @@ -128,7 +128,7 @@ public class VolumeBoostPreference extends DialogPreference { } for (int i = 0; i < MIC_FILE_PATH.length; i++) { - int value = sharedPrefs.getInt(MIC_FILE_PATH[i], MIC_DEFAULT_VALUE[i]); + int value = sharedPrefs.getInt(MIC_FILE_PATH[i], MIC_DEFAULT_VALUE); Utils.writeValue(MIC_FILE_PATH[i], String.valueOf(value)); } } @@ -215,14 +215,14 @@ public class VolumeBoostPreference extends DialogPreference { class MicSeekBar extends VolumeSeekBar { - public MicSeekBar(SeekBar seekBar, TextView valueDisplay, String filePath, int defaultValue) { + public MicSeekBar(SeekBar seekBar, TextView valueDisplay, String filePath) { mSeekBar = seekBar; mValueDisplay = valueDisplay; mFilePath = filePath; // Read original value SharedPreferences sharedPreferences = getSharedPreferences(); - mOriginal = sharedPreferences.getInt(mFilePath, MIC_DEFAULT_VALUE[defaultValue]); + mOriginal = sharedPreferences.getInt(mFilePath, MIC_DEFAULT_VALUE); seekBar.setMax(MIC_MAX_VALUE); reset(); |