summaryrefslogtreecommitdiffstats
path: root/tests/VoiceInteraction
diff options
context:
space:
mode:
authorSandeep Siddhartha <sansid@google.com>2014-08-23 15:57:47 -0700
committerSandeep Siddhartha <sansid@google.com>2014-08-23 16:00:16 -0700
commitfb30d6936a4793a3369fbf8bf51fa526b8a77272 (patch)
treebc21b3dec54133dd6fb84b4cc6b0fff0d256637e /tests/VoiceInteraction
parenta2c1449bb7cb46d5d5610f2c66b6a1ffa0d3d033 (diff)
downloadframeworks_base-fb30d6936a4793a3369fbf8bf51fa526b8a77272.zip
frameworks_base-fb30d6936a4793a3369fbf8bf51fa526b8a77272.tar.gz
frameworks_base-fb30d6936a4793a3369fbf8bf51fa526b8a77272.tar.bz2
Fix conversion of locale from BCP47 language tag
Bug: 17187528 Change-Id: Ifcf707c9be736885f3fc79f3c36087ecf9092971
Diffstat (limited to 'tests/VoiceInteraction')
-rw-r--r--tests/VoiceInteraction/src/com/android/test/voiceinteraction/MainInteractionService.java2
1 files changed, 1 insertions, 1 deletions
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