diff options
author | James Cook <jamescook@google.com> | 2015-06-08 20:03:38 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-06-08 20:03:39 +0000 |
commit | 5ac36cea8611d15027c4353e3c8ef932d6ad437a (patch) | |
tree | 93695bfe83c8e89c6006cfc1864edde0a19a6840 /tests | |
parent | 37cf07717137a41fd5c3724fe9c44de2f89a7f8c (diff) | |
parent | dd231d466faa3102d59e458a6726ff3004e6b1c7 (diff) | |
download | frameworks_base-5ac36cea8611d15027c4353e3c8ef932d6ad437a.zip frameworks_base-5ac36cea8611d15027c4353e3c8ef932d6ad437a.tar.gz frameworks_base-5ac36cea8611d15027c4353e3c8ef932d6ad437a.tar.bz2 |
Merge "Use VoiceInteractor.Prompt in VoiceInteraction test app" into mnc-dev
Diffstat (limited to 'tests')
-rw-r--r-- | tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java index 9d24c59..67db289 100644 --- a/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java +++ b/tests/VoiceInteraction/src/com/android/test/voiceinteraction/TestInteractionActivity.java @@ -73,7 +73,7 @@ public class TestInteractionActivity extends Activity implements View.OnClickLis mInteractor = getVoiceInteractor(); mCurrentRequest = new VoiceInteractor.ConfirmationRequest( - "This is a confirmation", null) { + new VoiceInteractor.Prompt("This is a confirmation"), null) { @Override public void onCancel() { Log.i(TAG, "Canceled!"); @@ -98,7 +98,7 @@ public class TestInteractionActivity extends Activity implements View.OnClickLis public void onClick(View v) { if (v == mAbortButton) { VoiceInteractor.AbortVoiceRequest req = new VoiceInteractor.AbortVoiceRequest( - "Dammit, we suck :(", null) { + new VoiceInteractor.Prompt("Dammit, we suck :("), null) { @Override public void onCancel() { Log.i(TAG, "Canceled!"); @@ -115,7 +115,7 @@ public class TestInteractionActivity extends Activity implements View.OnClickLis mInteractor.submitRequest(req); } else if (v == mCompleteButton) { VoiceInteractor.CompleteVoiceRequest req = new VoiceInteractor.CompleteVoiceRequest( - "Woohoo, completed!", null) { + new VoiceInteractor.Prompt("Woohoo, completed!"), null) { @Override public void onCancel() { Log.i(TAG, "Canceled!"); @@ -139,7 +139,7 @@ public class TestInteractionActivity extends Activity implements View.OnClickLis options[3] = new VoiceInteractor.PickOptionRequest.Option("Four"); options[4] = new VoiceInteractor.PickOptionRequest.Option("Five"); VoiceInteractor.PickOptionRequest req = new VoiceInteractor.PickOptionRequest( - "Need to pick something", options, null) { + new VoiceInteractor.Prompt("Need to pick something"), options, null) { @Override public void onCancel() { Log.i(TAG, "Canceled!"); |