diff --git a/android/app/src/main/java/com/example/whispertoinput/WhisperInputService.kt b/android/app/src/main/java/com/example/whispertoinput/WhisperInputService.kt index 2b58715..ba78683 100644 --- a/android/app/src/main/java/com/example/whispertoinput/WhisperInputService.kt +++ b/android/app/src/main/java/com/example/whispertoinput/WhisperInputService.kt @@ -211,4 +211,10 @@ class WhisperInputService : InputMethodService() { recorderManager!!.stop() } + override fun onDestroy() { + super.onDestroy() + whisperTranscriber.stop() + whisperKeyboard.reset() + recorderManager!!.stop() + } }