Revert "Simplification"

This reverts commit 9a178b2565.
pull/178/head
M66B 5 years ago
parent 45d0fdace5
commit a95b13eeac

@ -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();
}
});
}

Loading…
Cancel
Save