1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 09:47:13 +00:00
This commit is contained in:
M66B 2020-07-28 17:20:51 +02:00
parent 1c812a0a30
commit bb85993da6

View file

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