From bb85993da6a44d2c0167c4cf1d6e3fa6d1f7f6c9 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 28 Jul 2020 17:20:51 +0200 Subject: [PATCH] Cleanup --- app/src/main/java/eu/faircode/email/ServiceSend.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSend.java b/app/src/main/java/eu/faircode/email/ServiceSend.java index 7ff2e9763e..63a8b88899 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSend.java +++ b/app/src/main/java/eu/faircode/email/ServiceSend.java @@ -280,15 +280,13 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar private void checkConnectivity() { if (Looper.myLooper() == Looper.getMainLooper()) _checkConnectivity(); - else { - Log.e(new Throwable("Not on main thread")); + else new Handler(Looper.getMainLooper()).post(new Runnable() { @Override public void run() { _checkConnectivity(); } }); - } } private void _checkConnectivity() {