mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-05 21:07:49 +01:00
Ensure we have at least one archive file batch.
This commit is contained in:
committed by
Alex Hart
parent
517a4bc4e6
commit
ee45dbd540
@@ -470,7 +470,7 @@ class FilesFileSystem(private val context: Context, private val root: DocumentFi
|
||||
val allFiles = ConcurrentHashMap<String, DocumentFileInfo>()
|
||||
val total = subFolders.values.size
|
||||
val completed = AtomicInteger(0)
|
||||
val chunkSize = (total + batchCount - 1) / batchCount
|
||||
val chunkSize = ((total + batchCount - 1) / batchCount).coerceAtLeast(1)
|
||||
|
||||
Log.d(TAG, "allFilesAsync: $batchCount")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user