diff options
author | ByteHamster <info@bytehamster.com> | 2020-03-14 01:00:39 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-03-15 20:09:26 +0100 |
commit | d6c0cefa2a6db404ddf7a8496069006c1175f70f (patch) | |
tree | 1706dfb9c396ec1c8d866cce80636dffcb31c08c /core | |
parent | 32dd30705a8d34412285da3eab75e908af7c8439 (diff) | |
download | AntennaPod-d6c0cefa2a6db404ddf7a8496069006c1175f70f.zip |
Fixed flickering feed icon
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/glide/FastBlurTransformation.java | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/glide/FastBlurTransformation.java b/core/src/main/java/de/danoeh/antennapod/core/glide/FastBlurTransformation.java index d2d9e5947..bca4b1be8 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/glide/FastBlurTransformation.java +++ b/core/src/main/java/de/danoeh/antennapod/core/glide/FastBlurTransformation.java @@ -31,6 +31,16 @@ public class FastBlurTransformation extends BitmapTransformation { return result; } + @Override + public boolean equals(Object o) { + return o instanceof FastBlurTransformation; + } + + @Override + public void updateDiskCacheKey(@NonNull MessageDigest messageDigest) { + messageDigest.update(TAG.getBytes()); + } + private static Bitmap fastBlur(Bitmap bitmap, int radius) { // Stack Blur v1.0 from @@ -269,9 +279,4 @@ public class FastBlurTransformation extends BitmapTransformation { bitmap.setPixels(pix, 0, w, 0, 0, w, h); return bitmap; } - - @Override - public void updateDiskCacheKey(@NonNull MessageDigest messageDigest) { - messageDigest.update(TAG.getBytes()); - } -}
\ No newline at end of file +} |