浏览代码

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

jabarros 10 年之前
父节点
当前提交
e4c77cabcb
共有 1 个文件被更改,包括 1 次插入1 次删除
  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())