\r
\r
// TODO change to user preview.png\r
- HttpGet httpget = new HttpGet(mClient.getBaseUri() + "/ocs/v1.php/thumbnail?path=" + URLEncoder.encode(file.getRemotePath(), "UTF-8"));\r
+ //HttpGet httpget = new HttpGet(mClient.getBaseUri() + "/index.php/core/preview.png?file="+URLEncoder.encode(file.getRemotePath(), "UTF-8")+"&x=36&y=36&forceIcon=1");\r
+ HttpGet httpget = new HttpGet(mClient.getBaseUri() + "/ocs/v1.php/thumbnail?x=50&y=50&path=" + URLEncoder.encode(file.getRemotePath(), "UTF-8"));\r
HttpResponse response = httpclient.execute(httpget);\r
HttpEntity entity = response.getEntity();\r
\r
if (thumbnail != null){\r
addBitmapToCache(imageKey, thumbnail);\r
}\r
- \r
}\r
} catch(Exception e){\r
e.printStackTrace();\r
}\r
\r
protected void onPostExecute(Bitmap bitmap){\r
- fileIcon.setImageBitmap(bitmap);\r
+ if (bitmap != null){\r
+ fileIcon.setImageBitmap(bitmap);\r
+ }\r
}\r
}\r
\r