From: jabarros Date: Tue, 16 Sep 2014 11:48:17 +0000 (+0200) Subject: Fix bug. App crashes when installing it X-Git-Tag: oc-android-1.7.0_signed~163^2~7 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/31bd59d681d64d9a6e08104a03a47180af9b5d68 Fix bug. App crashes when installing it --- diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index 172341c4..038a6272 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/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