mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 06:32:22 +01:00
Refactor voice recording
This commit is contained in:
parent
4affeaf543
commit
d980e33b23
1 changed files with 1 additions and 7 deletions
|
@ -3316,15 +3316,9 @@ public class ConversationFragment extends XmppFragment
|
|||
//mStartTime = SystemClock.elapsedRealtime();
|
||||
mHandler.postDelayed(mTickExecutor, 0);
|
||||
Log.d("Voice Recorder", "started recording to " + mOutputFile.getAbsolutePath());
|
||||
return true;
|
||||
return false;
|
||||
} catch (Exception e) {
|
||||
Log.e("Voice Recorder", "prepare() failed " + e.getMessage());
|
||||
mRecorder.reset();
|
||||
mRecorder.release();
|
||||
mRecorder = null;
|
||||
recording = false;
|
||||
mStartTime = 0;
|
||||
mHandler.removeCallbacks(mTickExecutor);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue