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

Commit fd432cc

Browse files
authored
Prevent voice search from getting stuck in a cancel loop (#2127)
Fixes #1988 Fixes #1989 The search widget would call mMozillaSpeechService.cancel() after receiving a CANCELED status change and get stuck in a continuous loop.
1 parent 0500080 commit fd432cc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/dialogs/VoiceSearchWidget.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ public void onSpeechStatusChanged(final MozillaSpeechService.SpeechState aState,
200200
setResultState();
201201
break;
202202
case CANCELED:
203-
// Handle when a cancelation was fully executed
203+
// Handle when a cancellation was fully executed
204204
Log.d(LOGTAG, "===> CANCELED");
205-
setResultState();
206205
if (mDelegate != null) {
207206
mDelegate.OnVoiceSearchCanceled();
208207
}

0 commit comments

Comments
 (0)