Просмотр исходного кода

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

yanghuang лет назад: 6
Родитель
Сommit
fcc87a3b4f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/src/main/java/com/sheep/gamegroup/model/util/SheepSubscriber.java

+ 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
     @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);
             }
             }