Refactor voice recording

This commit is contained in:
p42ity 2024-04-04 17:46:00 +02:00
parent 4affeaf543
commit d980e33b23

View file

@ -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;
}
}