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
This commit is contained in:
committed by
Android Git Automerger
commit
3730334d5b
@@ -288,7 +288,7 @@ public class TextToSpeechSettings extends SettingsPreferenceFragment implements
|
|||||||
|
|
||||||
if (defaultAvailable == TextToSpeech.LANG_NOT_SUPPORTED ||
|
if (defaultAvailable == TextToSpeech.LANG_NOT_SUPPORTED ||
|
||||||
defaultAvailable == TextToSpeech.LANG_MISSING_DATA ||
|
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.");
|
if (DBG) Log.d(TAG, "Default locale for this TTS engine is not supported.");
|
||||||
updateEngineStatus(R.string.tts_status_not_supported);
|
updateEngineStatus(R.string.tts_status_not_supported);
|
||||||
updateWidgetState(false);
|
updateWidgetState(false);
|
||||||
|
Reference in New Issue
Block a user