Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Prevent voice search from getting stuck in a cancel loop (#2127)
Browse files Browse the repository at this point in the history
Fixes #1988 Fixes #1989
The search widget would call mMozillaSpeechService.cancel() after
receiving a CANCELED status change and get stuck in a continuous loop.
  • Loading branch information
bluemarvin committed Nov 1, 2019
1 parent 0500080 commit fd432cc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ public void onSpeechStatusChanged(final MozillaSpeechService.SpeechState aState,
setResultState();
break;
case CANCELED:
// Handle when a cancelation was fully executed
// Handle when a cancellation was fully executed
Log.d(LOGTAG, "===> CANCELED");
setResultState();
if (mDelegate != null) {
mDelegate.OnVoiceSearchCanceled();
}
Expand Down

0 comments on commit fd432cc

Please sign in to comment.