@Override\r
protected Bitmap doInBackground(OCFile... params) {\r
file = params[0];\r
- final String imageKey = String.valueOf(file.getRemoteId()).toLowerCase();\r
+ final String imageKey = String.valueOf(file.getRemoteId().hashCode());\r
Log_OC.d("Thumbnail", imageKey);\r
\r
// Check disk cache in background thread\r
try {\r
int status = -1;\r
\r
- String uri = client.getBaseUri() + "/index.php/apps/files/api/v1/thumbnail/100/100"+URLEncoder.encode(file.getRemotePath(), "UTF-8");\r
+ String uri = client.getBaseUri() + "/index.php/apps/files/api/v1/thumbnail/100/100/"+URLEncoder.encode(file.getRemotePath(), "UTF-8").replaceAll("%2F", "/");\r
Log_OC.d("Thumbnail", "URI: " + uri);\r
GetMethod get = new GetMethod(uri);\r
status = client.executeMethod(get);\r
// get Thumbnail if file is image\r
if (file.isImage()){\r
// Thumbnail in Cache?\r
- Bitmap thumbnail = getBitmapFromDiskCache(String.valueOf(file.getRemoteId().toLowerCase()));\r
+ Bitmap thumbnail = getBitmapFromDiskCache(String.valueOf(file.getRemoteId().hashCode()));\r
if (thumbnail != null){\r
fileIcon.setImageBitmap(thumbnail);\r
} else {\r