mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
adding a crashfix
This commit is contained in:
@@ -179,9 +179,15 @@ class RecorderService : Service() {
|
||||
}
|
||||
|
||||
val outputStream = contentResolver.openOutputStream(newUri)
|
||||
val inputStream = getFileInputStreamSync(currFilePath)
|
||||
inputStream!!.copyTo(outputStream!!, DEFAULT_BUFFER_SIZE)
|
||||
recordingSavedSuccessfully(true)
|
||||
|
||||
|
||||
try {
|
||||
val inputStream = getFileInputStreamSync(currFilePath)
|
||||
inputStream!!.copyTo(outputStream!!, DEFAULT_BUFFER_SIZE)
|
||||
recordingSavedSuccessfully(true)
|
||||
} catch (e: Exception) {
|
||||
showErrorToast(e)
|
||||
}
|
||||
}
|
||||
|
||||
private fun addFileInLegacyMediaStore() {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="AppTheme.Base"/>
|
||||
<style name="AppTheme" parent="AppTheme.Base" />
|
||||
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user