Prepare for library upgrade
This commit is contained in:
1 parent
6c0ad0e329
commit
1bc07a89b8
2 files changed
+4
-3
No files matched your search
@@ -53,7 +53,7 @@ public class ImageBitmapHelper implements ValueHelper<ImageBitmap> {
|
||||
|
||||
@Override
|
||||
public int sizeOf(@NonNull String key, @NonNull ImageBitmap value) {
|
||||
return value.getWidth() * value.getHeight() * 4;
|
||||
return value.getWidth() * value.getHeight() * 4 /* value.getByteCount() TODO Update Image */;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -69,7 +69,8 @@ public class ImageBitmapHelper implements ValueHelper<ImageBitmap> {
|
||||
@Override
|
||||
public boolean useMemoryCache(@NonNull String key, ImageBitmap value) {
|
||||
if (value != null) {
|
||||
return value.getWidth() * value.getHeight() <= MAX_CACHE_SIZE;
|
||||
return value.getWidth() * value.getHeight() <= MAX_CACHE_SIZE
|
||||
/* value.getByteCount() <= MAX_CACHE_BYTE_COUNT TODO Update Image */;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ public class LoadImageView extends FixedAspectImageView implements Unikery<Image
|
||||
|
||||
if (mFailed) {
|
||||
onFailure();
|
||||
} else {
|
||||
} else if (mTaskId == Unikery.INVALID_ID) /* if (!mConaco.isLoading(mTaskId)) TODO Update Conaco */ {
|
||||
load(mKey, mUrl, mContainer, mUseNetwork);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user