From fb30d6936a4793a3369fbf8bf51fa526b8a77272 Mon Sep 17 00:00:00 2001 From: Sandeep Siddhartha Date: Sat, 23 Aug 2014 15:57:47 -0700 Subject: Fix conversion of locale from BCP47 language tag Bug: 17187528 Change-Id: Ifcf707c9be736885f3fc79f3c36087ecf9092971 --- .../src/com/android/test/voiceinteraction/MainInteractionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/VoiceInteraction') diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java index 1233c0c..e1a579c 100644 --- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java +++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java @@ -69,7 +69,7 @@ public class MainInteractionService extends VoiceInteractionService { + Arrays.toString(getKeyphraseEnrollmentInfo().listKeyphraseMetadata())); mHotwordDetector = createAlwaysOnHotwordDetector( - "Hello There", new Locale("en-US"), mHotwordCallback); + "Hello There", Locale.forLanguageTag("en-US"), mHotwordCallback); } @Override -- cgit v1.1