Fix a bug in TextToSpeech.
Check that the requested engine is enabled. Change-Id: I8436b0b7b7f441fe3473601fb9c46181e90750e0
This commit is contained in:
@@ -499,7 +499,7 @@ public class TextToSpeech {
|
||||
String defaultEngine = getDefaultEngine();
|
||||
String engine = defaultEngine;
|
||||
if (!areDefaultsEnforced() && !TextUtils.isEmpty(mRequestedEngine)
|
||||
&& mEnginesHelper.isEngineEnabled(engine)) {
|
||||
&& mEnginesHelper.isEngineEnabled(mRequestedEngine)) {
|
||||
engine = mRequestedEngine;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user