Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
am cd84f92: Fix latency from beep to "Listening" state. Bug 2326485.
Browse files Browse the repository at this point in the history
Merge commit 'cd84f92b28c4d6fc55b76bce50434dd858f0d7d2' into eclair-plus-aosp

* commit 'cd84f92b28c4d6fc55b76bce50434dd858f0d7d2':
  Fix latency from beep to "Listening" state. Bug 2326485.
  • Loading branch information
Dave Sparks authored and Android Git Automerger committed Dec 15, 2009
2 parents 37553b7 + cd84f92 commit 30f531a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/com/android/voicedialer/VoiceDialerActivity.java
Expand Up @@ -154,19 +154,10 @@ public void onServiceDisconnected() {}
};

private void startWork() {
// prompt the user with a beep
final int msec = playSound(ToneGenerator.TONE_PROP_PROMPT);

// start the engine after the beep
// start the engine
mRecognizerThread = new Thread() {
public void run() {
if (Config.LOGD) Log.d(TAG, "onCreate.Runnable.run");
try {
Thread.sleep(msec);
} catch (InterruptedException e) {
return;
}
if (mToneGenerator != null) mToneGenerator.stopTone();
mEngine.recognize(VoiceDialerActivity.this,
newFile(getArg(MICROPHONE_EXTRA)),
newFile(getArg(CONTACTS_EXTRA)),
Expand Down

0 comments on commit 30f531a

Please sign in to comment.