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() {