Browse Source

Fix bug. App crashes when installing it

jabarros 10 years ago
parent
commit
31bd59d681
1 changed files with 0 additions and 19 deletions
  1. 0 19
      src/com/owncloud/android/ui/adapter/FileListListAdapter.java

+ 0 - 19
src/com/owncloud/android/ui/adapter/FileListListAdapter.java

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