diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2013-09-05 06:26:44 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-09-05 06:26:44 -0700 |
commit | 3730334d5b9355cad691c422272c88546035deca (patch) | |
tree | c6e58fdcf15217f5614ec6b087d6d496a6bb9b83 /src/com/android/settings | |
parent | ec4f5ed1a95bd26e68766252f19c407b1479bb83 (diff) | |
parent | 80c2b9b0c4c03c5ae9459875c05bc7370b7d6ca0 (diff) | |
download | packages_apps_Settings-3730334d5b9355cad691c422272c88546035deca.tar.gz packages_apps_Settings-3730334d5b9355cad691c422272c88546035deca.tar.bz2 packages_apps_Settings-3730334d5b9355cad691c422272c88546035deca.zip |
am 80c2b9b0: Hide "Play TTS sample" when locale is not settable as default
* commit '80c2b9b0c4c03c5ae9459875c05bc7370b7d6ca0':
Hide "Play TTS sample" when locale is not settable as default
Diffstat (limited to 'src/com/android/settings')
-rw-r--r-- | src/com/android/settings/tts/TextToSpeechSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/tts/TextToSpeechSettings.java b/src/com/android/settings/tts/TextToSpeechSettings.java index c6976612d..52ee4fda9 100644 --- a/src/com/android/settings/tts/TextToSpeechSettings.java +++ b/src/com/android/settings/tts/TextToSpeechSettings.java @@ -288,7 +288,7 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment implements if (defaultAvailable == TextToSpeech.LANG_NOT_SUPPORTED || defaultAvailable == TextToSpeech.LANG_MISSING_DATA || - mAvailableStrLocals != null && notInAvailableLangauges) { + mAvailableStrLocals == null || notInAvailableLangauges) { if (DBG) Log.d(TAG, "Default locale for this TTS engine is not supported."); updateEngineStatus(R.string.tts_status_not_supported); updateWidgetState(false); |