Explorar el Código

解决当有代理设置的情况不能连接网络的问题

yanghuang hace 6 años
padre
commit
fcc87a3b4f

+ 1 - 1
app/src/main/java/com/sheep/gamegroup/model/util/SheepSubscriber.java

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