pull/184/head
M66B 4 years ago
parent 1c812a0a30
commit bb85993da6

@ -280,15 +280,13 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
private void checkConnectivity() { private void checkConnectivity() {
if (Looper.myLooper() == Looper.getMainLooper()) if (Looper.myLooper() == Looper.getMainLooper())
_checkConnectivity(); _checkConnectivity();
else { else
Log.e(new Throwable("Not on main thread"));
new Handler(Looper.getMainLooper()).post(new Runnable() { new Handler(Looper.getMainLooper()).post(new Runnable() {
@Override @Override
public void run() { public void run() {
_checkConnectivity(); _checkConnectivity();
} }
}); });
}
} }
private void _checkConnectivity() { private void _checkConnectivity() {

Loading…
Cancel
Save