Skip to content

Commit 7bee1d1

Browse files
committed
Remote ETag: Keep it for thumbnail URL
Before the etag was set to empty for non-downloaded files. We need it for a proper cache key.
1 parent 8509724 commit 7bee1d1

12 files changed

Lines changed: 1265 additions & 3 deletions

File tree

opencloudApp/src/main/java/eu/opencloud/android/presentation/thumbnails/ThumbnailsRequester.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ object ThumbnailsRequester : KoinComponent {
9595
}
9696

9797
fun getPreviewUriForFile(file: OCFile, account: Account, etag: String? = null, width: Int = 1024, height: Int = 1024): String =
98-
getPreviewUri(file.remotePath, etag ?: file.etag, account, width, height)
98+
getPreviewUri(file.remotePath, etag ?: file.remoteEtag, account, width, height)
9999

100100
fun getPreviewUriForFile(fileWithSyncInfo: OCFileWithSyncInfo, account: Account, width: Int = 1024, height: Int = 1024): String =
101101
getPreviewUriForFile(fileWithSyncInfo.file, account, null, width, height)

0 commit comments

Comments
 (0)