Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Sort system trash by deletion time

Priyanshu Dangare91e3bea7367c
diff --git a/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/NativeChannel.kt b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/NativeChannel.kt
index 2495299369..3e7977df35 100644
--- a/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/NativeChannel.kt
+++ b/mobile/apps/photos/android/app/src/main/kotlin/io/ente/photos/NativeChannel.kt
@@ -58,6 +58,10 @@ object NativeChannel {
"(${MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE}, " +
"${MediaStore.Files.FileColumns.MEDIA_TYPE_VIDEO})",
)
+ putString(
+ ContentResolver.QUERY_ARG_SQL_SORT_ORDER,
+ "${MediaStore.Files.FileColumns.DATE_EXPIRES} DESC",
+ )
}
contentResolver.query(