From: jabarros Date: Wed, 15 Oct 2014 16:36:39 +0000 (+0200) Subject: Fixed. The thumbnail of the just uploaded image is refreshed when it is not necessary X-Git-Tag: oc-android-1.7.0_signed~15^2~14 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/e4c77cabcb761f4e5580c7126d617db513471364?ds=inline;hp=--cc Fixed. The thumbnail of the just uploaded image is refreshed when it is not necessary --- e4c77cabcb761f4e5580c7126d617db513471364 diff --git a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java index 40501133..df23414c 100644 --- a/src/com/owncloud/android/ui/adapter/FileListListAdapter.java +++ b/src/com/owncloud/android/ui/adapter/FileListListAdapter.java @@ -183,7 +183,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter { } // get Thumbnail if file is image - if (file.isImage()){ + if (file.isImage() && file.getRemoteId() != null){ // Thumbnail in Cache? Bitmap thumbnail = ThumbnailsCacheManager.getBitmapFromDiskCache( String.valueOf(file.getRemoteId())