diff --git a/core/java/android/speech/tts/TextToSpeech.java b/core/java/android/speech/tts/TextToSpeech.java index 2add7b5e062f1..e247df8dd9f3d 100755 --- a/core/java/android/speech/tts/TextToSpeech.java +++ b/core/java/android/speech/tts/TextToSpeech.java @@ -1066,7 +1066,8 @@ public class TextToSpeech { public List getEngines() { PackageManager pm = mContext.getPackageManager(); Intent intent = new Intent(Engine.INTENT_ACTION_TTS_SERVICE); - List resolveInfos = pm.queryIntentServices(intent, 0); + List resolveInfos = + pm.queryIntentServices(intent, PackageManager.MATCH_DEFAULT_ONLY); if (resolveInfos == null) return Collections.emptyList(); List engines = new ArrayList(resolveInfos.size()); for (ResolveInfo resolveInfo : resolveInfos) {