|
@@ -34,7 +34,7 @@ public abstract class SheepSubscriber<T> implements Observer<T> {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void onSubscribe(Disposable d) {
|
|
public void onSubscribe(Disposable d) {
|
|
|
- if (!NetUtil.isConnected(context) || NetUtil.isWifiProxy()) {
|
|
|
|
|
|
|
+ if (!NetUtil.isConnected(context)) {
|
|
|
if (SheepApp.getInstance().getCurrentActivity() != null) {
|
|
if (SheepApp.getInstance().getCurrentActivity() != null) {
|
|
|
SheepApp.getInstance().getCurrentActivity().runOnUiThread(this::showNoNetView);
|
|
SheepApp.getInstance().getCurrentActivity().runOnUiThread(this::showNoNetView);
|
|
|
}
|
|
}
|