mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
fix file sharing on Android below Q
This commit is contained in:
@ -99,7 +99,13 @@ class RecordingsAdapter(activity: SimpleActivity, var recordings: ArrayList<Reco
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun shareRecordings() {
|
private fun shareRecordings() {
|
||||||
val paths = getSelectedItems().map { getAudioFileContentUri(it.id.toLong()).toString() }
|
val selectedItems = getSelectedItems()
|
||||||
|
val paths = if (isQPlus()) {
|
||||||
|
selectedItems.map { getAudioFileContentUri(it.id.toLong()).toString() }
|
||||||
|
} else {
|
||||||
|
selectedItems.map { it.path }
|
||||||
|
}
|
||||||
|
|
||||||
activity.sharePathsIntent(paths, BuildConfig.APPLICATION_ID)
|
activity.sharePathsIntent(paths, BuildConfig.APPLICATION_ID)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user