From b9b0a753e0afcbff9eab1970031b295bd0b7595d Mon Sep 17 00:00:00 2001 From: jabarros Date: Wed, 1 Oct 2014 09:03:15 +0200 Subject: [PATCH] Changes after CR --- .../android/ui/adapter/FileListListAdapter.java | 29 ---------------------- 1 file changed, 29 deletions(-) diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index 56b51319..d748a70c 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -177,35 +177,6 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { mStorageManager.saveFile(file); } - } else { - // Download thumbnail from server - // Commented out as maybe changes to client library are needed - // DefaultHttpClient httpclient = new DefaultHttpClient(); - // try { - // httpclient.getCredentialsProvider().setCredentials( - // new AuthScope(mClient.getBaseUri().toString().replace("https://", ""), 443), - // new UsernamePasswordCredentials(mClient.getCredentials().getUsername(), mClient.getCredentials().getAuthToken())); - // - // - // HttpGet httpget = new HttpGet(mClient.getBaseUri() + "/ocs/v1.php/thumbnail?x=50&y=50&path=" + URLEncoder.encode(file.getRemotePath(), "UTF-8")); - // HttpResponse response = httpclient.execute(httpget); - // HttpEntity entity = response.getEntity(); - // - // if (entity != null) { - // byte[] bytes = EntityUtils.toByteArray(entity); - // Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length); - // thumbnail = ThumbnailUtils.extractThumbnail(bitmap, px, px); - // - // // Add thumbnail to cache - // if (thumbnail != null){ - // addBitmapToCache(imageKey, thumbnail); - // } - // } - // } catch(Exception e){ - // e.printStackTrace(); - // }finally { - // httpclient.getConnectionManager().shutdown(); - // } } } -- 2.11.0