File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
data/src/main/java/org/cryptomator/data/cloud/crypto Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -480,12 +480,18 @@ abstract class CryptoImplDecorator(
480
480
val firstCryptoFile = list.find { it is CryptoFile } ? : return list
481
481
val cloudType = (firstCryptoFile as CryptoFile ).cloudFile.cloud?.type() ? : return list
482
482
val diskCache = getLruCacheFor(cloudType) ? : return list
483
- list.onEach { cryptoNode ->
483
+ list.forEach { cryptoNode ->
484
484
if (cryptoNode is CryptoFile && isImageMediaType(cryptoNode.name)) {
485
485
val cacheKey = generateCacheKey(cryptoNode.cloudFile)
486
486
val cacheFile = diskCache[cacheKey]
487
487
if (cacheFile != null ) {
488
488
cryptoNode.thumbnail = cacheFile
489
+ } else {
490
+ // TODO
491
+ // force thumbnail generation (~PER FOLDER)
492
+ val trash = File .createTempFile(cryptoNode.name, " .temp" , internalCache)
493
+ read(cryptoNode, trash.outputStream(), ProgressAware .NO_OP_PROGRESS_AWARE_DOWNLOAD )
494
+ trash.delete()
489
495
}
490
496
}
491
497
}
You can’t perform that action at this time.
0 commit comments