mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 20:06:29 +01:00
@@ -42,6 +42,7 @@ import android.net.Network;
|
||||
import android.net.NetworkCapabilities;
|
||||
import android.net.Uri;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Base64;
|
||||
import android.util.DisplayMetrics;
|
||||
@@ -417,7 +418,7 @@ class ImageHelper {
|
||||
private void post(final Drawable d, String source) {
|
||||
Log.i("Posting image=" + source);
|
||||
|
||||
view.post(new Runnable() {
|
||||
new Handler(context.getMainLooper()).post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
Rect bounds = d.getBounds();
|
||||
@@ -427,6 +428,7 @@ class ImageHelper {
|
||||
lld.setLevel(0);
|
||||
|
||||
view.requestLayout();
|
||||
view.invalidate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user