From 9a178b2565dfe0a171967d2a15256c7da7bf98f1 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 25 Apr 2020 18:24:42 +0200 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/ImageHelper.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ImageHelper.java b/app/src/main/java/eu/faircode/email/ImageHelper.java index d5fb7a3002..c6f8c95645 100644 --- a/app/src/main/java/eu/faircode/email/ImageHelper.java +++ b/app/src/main/java/eu/faircode/email/ImageHelper.java @@ -41,7 +41,6 @@ import android.net.ConnectivityManager; import android.net.Network; import android.net.NetworkCapabilities; import android.os.Build; -import android.os.Handler; import android.text.TextUtils; import android.util.Base64; import android.util.DisplayMetrics; @@ -396,7 +395,7 @@ class ImageHelper { private void post(final Drawable d, String source) { Log.i("Posting image=" + source); - new Handler(context.getMainLooper()).post(new Runnable() { + view.post(new Runnable() { @Override public void run() { Rect bounds = d.getBounds(); @@ -406,7 +405,6 @@ class ImageHelper { lld.setLevel(0); view.requestLayout(); - view.invalidate(); } }); }