Fixed. The thumbnail of the just uploaded image is refreshed when it is not necessary
authorjabarros <jabarros@solidgear.es>
Wed, 15 Oct 2014 16:36:39 +0000 (18:36 +0200)
committerjabarros <jabarros@solidgear.es>
Wed, 15 Oct 2014 16:36:39 +0000 (18:36 +0200)
src/com/owncloud/android/ui/adapter/FileListListAdapter.java

index 4050113..df23414 100644 (file)
@@ -183,7 +183,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
                 }               \r
                 \r
                 // get Thumbnail if file is image\r
-                if (file.isImage()){\r
+                if (file.isImage() && file.getRemoteId() != null){\r
                      // Thumbnail in Cache?\r
                     Bitmap thumbnail = ThumbnailsCacheManager.getBitmapFromDiskCache(\r
                             String.valueOf(file.getRemoteId())\r