mirror of https://github.com/M66B/FairEmail.git
Simplification
This commit is contained in:
parent
0f639b309a
commit
9a178b2565
|
@ -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();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue