|
@@ -289,7 +289,7 @@ public final class ThumbnailsCacheManager {
|
|
file = (OCFile) params[0];
|
|
file = (OCFile) params[0];
|
|
|
|
|
|
|
|
|
|
- if (file.getRemoteId() != null && file.isPreviewAvailable()) {
|
|
|
|
|
|
+ if (file.getRemoteId() != null || file.isPreviewAvailable()) {
|
|
// Thumbnail in cache?
|
|
// Thumbnail in cache?
|
|
thumbnail = ThumbnailsCacheManager.getBitmapFromDiskCache(
|
|
thumbnail = ThumbnailsCacheManager.getBitmapFromDiskCache(
|
|
ThumbnailsCacheManager.PREFIX_RESIZED_IMAGE + file.getRemoteId()
|
|
ThumbnailsCacheManager.PREFIX_RESIZED_IMAGE + file.getRemoteId()
|
|
@@ -1423,7 +1423,7 @@ public final class ThumbnailsCacheManager {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- // resized dimensions
|
|
|
|
|
|
+ // resized dimensions and set update thumbnail needed to false to prevent rendering loop
|
|
if (thumbnail != null) {
|
|
if (thumbnail != null) {
|
|
file.setImageDimension(new ImageDimension(thumbnail.getWidth(), thumbnail.getHeight()));
|
|
file.setImageDimension(new ImageDimension(thumbnail.getWidth(), thumbnail.getHeight()));
|
|
storageManager.saveFile(file);
|
|
storageManager.saveFile(file);
|