Fixing the bug where mic button is not shown

Change-Id: I8ac7bd4c1db85058f863bcfaf5ee30212644b2bd
This commit is contained in:
Valentin Kravtsov
2010-02-12 14:19:11 +00:00
parent ac6df2d037
commit cccd63c8e8

View File

@@ -171,7 +171,7 @@ public class RecognitionManager {
*/
public static boolean isRecognitionAvailable(final Context context) {
final List<ResolveInfo> list = context.getPackageManager().queryIntentServices(
new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH), 0);
new Intent(RecognitionService.SERVICE_INTERFACE), 0);
return list != null && list.size() != 0;
}