Browse Source

Fixed. The thumbnail of the just uploaded image is refreshed when it is not necessary

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

+ 1 - 1
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())