|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
protected int onIsLanguageAvailable(String language, String country, String variant) { |
|
|
protected int onIsLanguageAvailable(String language, String country, String variant) { |
|
|
Context context = getApplicationContext(); |
|
|
|
|
|
if (!mEngineInitialized || |
|
|
if (!mEngineInitialized || |
|
|
!CheckVoiceData.hasBaseResources(context) || |
|
|
|
|
|
CheckVoiceData.canUpgradeResources(context)) { |
|
|
|
|
|
|
|
|
!CheckVoiceData.hasBaseResources(this) || |
|
|
|
|
|
CheckVoiceData.canUpgradeResources(this)) { |
|
|
return TextToSpeech.LANG_MISSING_DATA; |
|
|
return TextToSpeech.LANG_MISSING_DATA; |
|
|
} |
|
|
} |
|
|
|
|
|
|