|
@@ -427,7 +427,6 @@ public final class ThumbnailsCacheManager {
|
|
private String mImageKey;
|
|
private String mImageKey;
|
|
private FileDataStorageManager mStorageManager;
|
|
private FileDataStorageManager mStorageManager;
|
|
private GetMethod getMethod;
|
|
private GetMethod getMethod;
|
|
- private boolean roundedCorners = false;
|
|
|
|
private Listener mListener;
|
|
private Listener mListener;
|
|
|
|
|
|
public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager, Account account)
|
|
public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager, Account account)
|
|
@@ -435,16 +434,6 @@ public final class ThumbnailsCacheManager {
|
|
this(imageView, storageManager, account, null);
|
|
this(imageView, storageManager, account, null);
|
|
}
|
|
}
|
|
|
|
|
|
- public ThumbnailGenerationTask(ImageView imageView,
|
|
|
|
- FileDataStorageManager storageManager,
|
|
|
|
- Account account,
|
|
|
|
- List<ThumbnailGenerationTask> asyncTasks,
|
|
|
|
- boolean roundedCorners)
|
|
|
|
- throws IllegalArgumentException {
|
|
|
|
- this(imageView, storageManager, account, asyncTasks);
|
|
|
|
- this.roundedCorners = roundedCorners;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager,
|
|
public ThumbnailGenerationTask(ImageView imageView, FileDataStorageManager storageManager,
|
|
Account account, List<ThumbnailGenerationTask> asyncTasks)
|
|
Account account, List<ThumbnailGenerationTask> asyncTasks)
|
|
throws IllegalArgumentException {
|
|
throws IllegalArgumentException {
|
|
@@ -543,11 +532,7 @@ public final class ThumbnailsCacheManager {
|
|
tagId = String.valueOf(((TrashbinFile) mFile).getRemoteId());
|
|
tagId = String.valueOf(((TrashbinFile) mFile).getRemoteId());
|
|
}
|
|
}
|
|
if (String.valueOf(imageView.getTag()).equals(tagId)) {
|
|
if (String.valueOf(imageView.getTag()).equals(tagId)) {
|
|
- if (roundedCorners) {
|
|
|
|
- BitmapUtils.setRoundedBitmap(bitmap, imageView);
|
|
|
|
- } else {
|
|
|
|
- imageView.setImageBitmap(bitmap);
|
|
|
|
- }
|
|
|
|
|
|
+ BitmapUtils.setRoundedBitmap(bitmap, imageView);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|