mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-01-11 00:14:23 +01:00
moving outputstream creating to try/catch block
This commit is contained in:
parent
199c551e29
commit
de557ff618
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user