diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2013-09-05 13:05:04 +0100 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2013-09-05 13:05:04 +0100 |
commit | 80c2b9b0c4c03c5ae9459875c05bc7370b7d6ca0 (patch) | |
tree | 0727a1036790ff012c1a52bb0cc2b8ca6f706493 /src/com/android/settings | |
parent | dd600b603d98e28219a9a38a62f2527db05736bb (diff) | |
download | packages_apps_Settings-80c2b9b0c4c03c5ae9459875c05bc7370b7d6ca0.tar.gz packages_apps_Settings-80c2b9b0c4c03c5ae9459875c05bc7370b7d6ca0.tar.bz2 packages_apps_Settings-80c2b9b0c4c03c5ae9459875c05bc7370b7d6ca0.zip |
Hide "Play TTS sample" when locale is not settable as default
Due to a bug, it's possible for settings to show status telling
that locale is available, despite locale not being in list of
locales settable as TTS default locale. This change fixes it.
Bug: 10630713
Change-Id: I21f8487fc6c1ea7812aeffbc26dfa5fc0a8afa3b
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); |