| @@ -114,10 +114,9 @@ public class TtsService extends TextToSpeechService { | |||
| @Override | |||
| protected int onIsLanguageAvailable(String language, String country, String variant) { | |||
| Context context = getApplicationContext(); | |||
| if (!mEngineInitialized || | |||
| !CheckVoiceData.hasBaseResources(context) || | |||
| CheckVoiceData.canUpgradeResources(context)) { | |||
| !CheckVoiceData.hasBaseResources(this) || | |||
| CheckVoiceData.canUpgradeResources(this)) { | |||
| return TextToSpeech.LANG_MISSING_DATA; | |||
| } | |||