Skip to content

Commit

Permalink
chore: Set the right limit
Browse files Browse the repository at this point in the history
  • Loading branch information
sirambd committed Feb 19, 2025
1 parent 9aeb9a3 commit d830916
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/java/com/infomaniak/drive/ui/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ class MainActivity : BaseActivity() {
isDeletion = true,
onConfirmation = { onConfirmation(filesUploadedRecently, filesUriToDelete) }
)

}

private fun onDestinationChanged(destination: NavDestination, navigationArgs: Bundle?) {
Expand Down Expand Up @@ -627,6 +626,6 @@ class MainActivity : BaseActivity() {
// Maximum number of elements in the list supported by the mediastore when Uris are to be deleted.
// When you exceed this value, the system may not propagate dialog to delete the images,
// and when you exceed 10_000 you receive a `NullPointerException`.
private const val MEDIASTORE_DELETE_BATCH_LIMIT = 50
private const val MEDIASTORE_DELETE_BATCH_LIMIT = 5_000
}
}

0 comments on commit d830916

Please sign in to comment.