mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
moving outputstream creating to try/catch block
This commit is contained in:
@@ -180,10 +180,8 @@ class RecorderService : Service() {
|
||||
return
|
||||
}
|
||||
|
||||
val outputStream = contentResolver.openOutputStream(newUri)
|
||||
|
||||
|
||||
try {
|
||||
val outputStream = contentResolver.openOutputStream(newUri)
|
||||
val inputStream = getFileInputStreamSync(currFilePath)
|
||||
inputStream!!.copyTo(outputStream!!, DEFAULT_BUFFER_SIZE)
|
||||
recordingSavedSuccessfully(true)
|
||||
|
Reference in New Issue
Block a user