Skip to content
Snippets Groups Projects
Commit 12f10e15 authored by Jean Chalard's avatar Jean Chalard
Browse files

Read options in the declaration order

Change-Id: I1a7c4d0bcaedad6d4045c36c79280c23234db5b3
parent c40b807c
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,8 @@ public class SettingsValues {
prefs.getBoolean(Settings.PREF_KEY_ENABLE_SPAN_INSERT, true);
// Compute other readable settings
mKeypressVibrationDuration = getCurrentVibrationDuration(prefs, res);
mFxVolume = getCurrentKeypressSoundVolume(prefs, res);
mKeyPreviewPopupDismissDelay = getKeyPreviewPopupDismissDelay(prefs, res);
mAutoCorrectionThreshold = getAutoCorrectionThreshold(prefs, res);
final String voiceModeMain = res.getString(R.string.voice_mode_main);
......@@ -120,9 +122,6 @@ public class SettingsValues {
mVoiceKeyEnabled = voiceMode != null && !voiceMode.equals(voiceModeOff);
mVoiceKeyOnMain = voiceMode != null && voiceMode.equals(voiceModeMain);
mFxVolume = getCurrentKeypressSoundVolume(prefs, res);
mKeypressVibrationDuration = getCurrentVibrationDuration(prefs, res);
LocaleUtils.setSystemLocale(res, savedLocale);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment