aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-06-20 20:58:59 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-20 20:58:59 +0200
commitcdf34ece42831abe31b69359bb9f4a02d386daaf (patch)
treec858a311cef9970645c0ee8fc4357bcdef774f65 /src/main
parent06f04e5ec1a938d55c2ee943bb35888f14cc3b5a (diff)
thumb caching improvement
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ShowFullscreenMessageActivity.java1
-rw-r--r--src/main/java/eu/siacs/conversations/ui/XmppActivity.java4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ShowFullscreenMessageActivity.java b/src/main/java/eu/siacs/conversations/ui/ShowFullscreenMessageActivity.java
index 43791ec7f..6e5593f03 100644
--- a/src/main/java/eu/siacs/conversations/ui/ShowFullscreenMessageActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/ShowFullscreenMessageActivity.java
@@ -86,7 +86,6 @@ public class ShowFullscreenMessageActivity extends Activity {
Glide.with(this)
.load(file)
.asBitmap()
- .signature(new StringSignature(String.valueOf(System.currentTimeMillis())))
.into(new BitmapImageViewTarget(mImage) {
@Override
public void onResourceReady(Bitmap resource, GlideAnimation<? super Bitmap> glideAnimation) {
diff --git a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
index c2ff47df4..0655c6578 100644
--- a/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
+++ b/src/main/java/eu/siacs/conversations/ui/XmppActivity.java
@@ -1221,7 +1221,7 @@ public abstract class XmppActivity extends Activity {
.fitCenter()
//.centerCrop()
.diskCacheStrategy(DiskCacheStrategy.RESULT)
- .signature(new StringSignature(String.valueOf(System.currentTimeMillis())))
+ .signature(new StringSignature(String.valueOf(System.currentTimeMillis()/(1*60*60*1000))))
.into(imageView);
} catch (Exception e) {
e.printStackTrace();
@@ -1249,7 +1249,7 @@ public abstract class XmppActivity extends Activity {
//.centerCrop()
.diskCacheStrategy(DiskCacheStrategy.RESULT)
.videoDecoder(fileDescriptorBitmapDecoder)
- .signature(new StringSignature(String.valueOf(System.currentTimeMillis())))
+ .signature(new StringSignature(String.valueOf(System.currentTimeMillis()/(1*60*60*1000))))
.into(imageView);
} catch (Exception e) {
e.printStackTrace();