Skip to content

Commit b6c9b5a

Browse files
committed
bugfix: enable resend button again after canceling recording
1 parent 07188d8 commit b6c9b5a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/src/main/java/net/devemperor/dictate/core/DictateInputMethodService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,12 @@ public void run() {
482482
if (audioFocusEnabled) am.abandonAudioFocusRequest(audioFocusRequest);
483483
if (isBluetoothScoStarted) am.stopBluetoothSco();
484484

485+
// enable resend button if previous audio file still exists in cache
486+
if (new File(getCacheDir(), sp.getString("net.devemperor.dictate.last_file_name", "audio.m4a")).exists()
487+
&& sp.getBoolean("net.devemperor.dictate.resend_button", false)) {
488+
resendButton.setVisibility(View.VISIBLE);
489+
}
490+
485491
isRecording = false;
486492
isPaused = false;
487493
livePrompt = false;

0 commit comments

Comments
 (0)