Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mobile][photos] inline media type query constants

Priyanshu Dangare463e9ee6e5cc
diff --git a/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/devicetrash/DeviceTrashService.kt b/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/devicetrash/DeviceTrashService.kt
index 69a1650a19..e512408a33 100644
--- a/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/devicetrash/DeviceTrashService.kt
+++ b/mobile/apps/photos/plugins/ente_photos_platform/android/src/main/kotlin/io/ente/photos/platform/devicetrash/DeviceTrashService.kt
@@ -57,14 +57,9 @@ internal class DeviceTrashService(context: Context) {
Bundle().apply {
putString(
ContentResolver.QUERY_ARG_SQL_SELECTION,
- "${MediaStore.Files.FileColumns.MEDIA_TYPE} IN (?, ?)",
- )
- putStringArray(
- ContentResolver.QUERY_ARG_SQL_SELECTION_ARGS,
- arrayOf(
- MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE.toString(),
- MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO.toString(),
- ),
+ "${MediaStore.Files.FileColumns.MEDIA_TYPE} IN " +
+ "(${MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE}, " +
+ "${MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO})",
)
putString(
ContentResolver.QUERY_ARG_SQL_SORT_ORDER,