Simplification

This commit is contained in:
M66B 2020-04-25 18:24:42 +02:00
parent 0f639b309a
commit 9a178b2565
1 changed files with 1 additions and 3 deletions

View File

@ -41,7 +41,6 @@ import android.net.ConnectivityManager;
import android.net.Network; import android.net.Network;
import android.net.NetworkCapabilities; import android.net.NetworkCapabilities;
import android.os.Build; import android.os.Build;
import android.os.Handler;
import android.text.TextUtils; import android.text.TextUtils;
import android.util.Base64; import android.util.Base64;
import android.util.DisplayMetrics; import android.util.DisplayMetrics;
@ -396,7 +395,7 @@ class ImageHelper {
private void post(final Drawable d, String source) { private void post(final Drawable d, String source) {
Log.i("Posting image=" + source); Log.i("Posting image=" + source);
new Handler(context.getMainLooper()).post(new Runnable() { view.post(new Runnable() {
@Override @Override
public void run() { public void run() {
Rect bounds = d.getBounds(); Rect bounds = d.getBounds();
@ -406,7 +405,6 @@ class ImageHelper {
lld.setLevel(0); lld.setLevel(0);
view.requestLayout(); view.requestLayout();
view.invalidate();
} }
}); });
} }