mirror of
https://github.com/nextcloud/android.git
synced 2024-12-19 15:33:00 +03:00
Merge pull request #14081 from nextcloud/fix/thumbnails-cache-resize-localid
fix(Thumbnails): Use local id rather than remote id
This commit is contained in:
commit
581b258952
1 changed files with 1 additions and 1 deletions
|
@ -1400,7 +1400,7 @@ public final class ThumbnailsCacheManager {
|
||||||
GetMethod getMethod = null;
|
GetMethod getMethod = null;
|
||||||
try {
|
try {
|
||||||
String uri = mClient.getBaseUri() + "/index.php/core/preview?fileId="
|
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";
|
+ "&x=" + (pxW / 2) + "&y=" + (pxH / 2) + "&a=1&mode=cover&forceIcon=0";
|
||||||
Log_OC.d(TAG, "generate resized image: " + file.getFileName() + " URI: " + uri);
|
Log_OC.d(TAG, "generate resized image: " + file.getFileName() + " URI: " + uri);
|
||||||
getMethod = new GetMethod(uri);
|
getMethod = new GetMethod(uri);
|
||||||
|
|
Loading…
Reference in a new issue