Эх сурвалжийг харах

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

jabarros 10 жил өмнө
parent
commit
e4c77cabcb

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