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:
@@ -56,7 +56,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.33.22'
|
implementation 'com.simplemobiletools:commons:5.33.24'
|
||||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||||
implementation 'com.github.Armen101:AudioRecordView:1.0.2'
|
implementation 'com.github.Armen101:AudioRecordView:1.0.2'
|
||||||
implementation 'androidx.documentfile:documentfile:1.0.1'
|
implementation 'androidx.documentfile:documentfile:1.0.1'
|
||||||
|
@@ -179,9 +179,15 @@ class RecorderService : Service() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val outputStream = contentResolver.openOutputStream(newUri)
|
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() {
|
private fun addFileInLegacyMediaStore() {
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme" parent="AppTheme.Base"/>
|
<style name="AppTheme" parent="AppTheme.Base" />
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Reference in New Issue
Block a user