From 1d23c3a45e62c47356a4ab09dd6cb8c814138ebb Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 23 Nov 2024 11:04:07 -0500 Subject: [PATCH] fix(Thumbnails): Use correct local id rather than remote id Fixes #13743 Signed-off-by: Josh --- .../com/owncloud/android/datamodel/ThumbnailsCacheManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java b/app/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java index 0cadc34a19..96a5caf4ea 100644 --- a/app/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java +++ b/app/src/main/java/com/owncloud/android/datamodel/ThumbnailsCacheManager.java @@ -1400,7 +1400,7 @@ public final class ThumbnailsCacheManager { GetMethod getMethod = null; try { String uri = mClient.getBaseUri() + "/index.php/core/preview?fileId=" - + file.getRemoteId() + + file.getLocalId() + "&x=" + (pxW / 2) + "&y=" + (pxH / 2) + "&a=1&mode=cover&forceIcon=0"; Log_OC.d(TAG, "generate resized image: " + file.getFileName() + " URI: " + uri); getMethod = new GetMethod(uri);