mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +02:00
fix: Fix recorder for Android level 33
This commit is contained in:
parent
08a6d557f8
commit
298ce13369
@ -24,7 +24,6 @@ import app.myzel394.alibi.ui.RECORDER_MEDIA_SELECTED_VALUE
|
|||||||
import app.myzel394.alibi.ui.SUPPORTS_SCOPED_STORAGE
|
import app.myzel394.alibi.ui.SUPPORTS_SCOPED_STORAGE
|
||||||
import app.myzel394.alibi.ui.utils.PermissionHelper
|
import app.myzel394.alibi.ui.utils.PermissionHelper
|
||||||
import com.arthenica.ffmpegkit.FFprobeKit
|
import com.arthenica.ffmpegkit.FFprobeKit
|
||||||
import com.arthenica.ffmpegkit.FFprobeSession
|
|
||||||
import kotlinx.coroutines.CompletableDeferred
|
import kotlinx.coroutines.CompletableDeferred
|
||||||
import kotlin.reflect.KFunction4
|
import kotlin.reflect.KFunction4
|
||||||
|
|
||||||
@ -464,7 +463,7 @@ abstract class BatchesFolder(
|
|||||||
context.contentResolver.query(
|
context.contentResolver.query(
|
||||||
scopedMediaContentUri,
|
scopedMediaContentUri,
|
||||||
arrayOf(MediaStore.MediaColumns._ID, MediaStore.MediaColumns.DISPLAY_NAME),
|
arrayOf(MediaStore.MediaColumns._ID, MediaStore.MediaColumns.DISPLAY_NAME),
|
||||||
"${MediaStore.MediaColumns.DISPLAY_NAME} = '$name' AND ${Media.RELATIVE_PATH} = '$relativePath'",
|
"${MediaStore.MediaColumns.DISPLAY_NAME} = '$name'",
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
)!!.use { cursor ->
|
)!!.use { cursor ->
|
||||||
|
@ -243,6 +243,7 @@ class VideoRecorderService :
|
|||||||
).build()
|
).build()
|
||||||
)
|
)
|
||||||
} else if (batchesFolder.type == BatchesFolder.BatchType.MEDIA) {
|
} else if (batchesFolder.type == BatchesFolder.BatchType.MEDIA) {
|
||||||
|
// TODO: Add screen with help where the recordings are saved
|
||||||
if (SUPPORTS_SCOPED_STORAGE) {
|
if (SUPPORTS_SCOPED_STORAGE) {
|
||||||
val name = getNameForMediaFile()
|
val name = getNameForMediaFile()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user