|
|
|
@ -280,8 +280,7 @@ 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() {
|
|
|
|
@ -289,7 +288,6 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void _checkConnectivity() {
|
|
|
|
|
Network active = ConnectionHelper.getActiveNetwork(this);
|
|
|
|
|