We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3842bc9 commit 6938b70Copy full SHA for 6938b70
chat/src/main/java/cn/wildfire/chat/kit/audio/AudioRecorderPanel.java
@@ -115,6 +115,8 @@ private void startRecord() {
115
if (recorder == null) {
116
recorder = new AudioRecorder(context);
117
handler = new Handler();
118
+ } else {
119
+ handler.removeCallbacks(this::hideRecording);
120
}
121
currentAudioFile = genAudioFile();
122
recorder.startRecord(currentAudioFile);
@@ -188,6 +190,9 @@ private void showRecording() {
188
190
189
191
192
private void hideRecording() {
193
+ if (recordingWindow == null) {
194
+ return;
195
+ }
196
recordingWindow.dismiss();
197
recordingWindow = null;
198
0 commit comments