This commit is contained in:
tarsin committed 2022-07-24 20:20:04 +08:00
1 parent b61e46e956
commit e095627aee
36 files changed
+51 -1136

No files matched your search

@@ -245,7 +245,7 @@ public abstract class GalleryProvider {
}
public void add(Integer key, ImageWrapper value) {
if (value.getFormat() != Image.FORMAT_GIF && value.obtain()) {
if (value.getFormat() != Image.FORMAT_ANIMATED && value.obtain()) {
put(key, value);
}
}
@@ -253,7 +253,7 @@ public abstract class GalleryProvider {
@Override
protected int sizeOf(Integer key, ImageWrapper value) {
int size = value.getWidth() * value.getHeight() * 4;
if (value.getFormat() == Image.FORMAT_GIF) {
if (value.getFormat() == Image.FORMAT_ANIMATED) {
size *= 5;
}
return size;