Fix bug. App crashes when installing it
authorjabarros <jabarros@solidgear.es>
Tue, 16 Sep 2014 11:48:17 +0000 (13:48 +0200)
committerjabarros <jabarros@solidgear.es>
Tue, 16 Sep 2014 11:48:17 +0000 (13:48 +0200)
src/com/owncloud/android/ui/adapter/FileListListAdapter.java

index 172341c..038a627 100644 (file)
@@ -95,7 +95,6 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
     private static final int DISK_CACHE_SIZE = 1024 * 1024 * 10; // 10MB\r
     private static final CompressFormat mCompressFormat = CompressFormat.JPEG;\r
     private static final int mCompressQuality = 70;\r
-    private OwnCloudClient mClient;\r
     private Bitmap defaultImg;\r
         \r
     public FileListListAdapter(\r
@@ -121,24 +120,6 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
             synchronized (thumbnailDiskCacheLock) {\r
                 mThumbnailCache = new DiskLruImageCache(mContext, "thumbnailCache", \r
                                     DISK_CACHE_SIZE, mCompressFormat, mCompressQuality);\r
-                \r
-                try {\r
-                    OwnCloudAccount ocAccount = new OwnCloudAccount(mAccount, mContext);\r
-                    mClient = OwnCloudClientManagerFactory.getDefaultSingleton().\r
-                            getClientFor(ocAccount, mContext);\r
-                } catch (AccountNotFoundException e) {\r
-                    // TODO Auto-generated catch block\r
-                    e.printStackTrace();\r
-                } catch (AuthenticatorException e) {\r
-                    // TODO Auto-generated catch block\r
-                    e.printStackTrace();\r
-                } catch (OperationCanceledException e) {\r
-                    // TODO Auto-generated catch block\r
-                    e.printStackTrace();\r
-                } catch (IOException e) {\r
-                    // TODO Auto-generated catch block\r
-                    e.printStackTrace();\r
-                }\r
 \r
                 mThumbnailCacheStarting = false; // Finished initialization\r
                 thumbnailDiskCacheLock.notifyAll(); // Wake any waiting threads\r