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

This commit is contained in:
jabarros 2014-10-15 18:36:39 +02:00
parent 5fd7b7e29f
commit e4c77cabcb

View file

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