diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveMicAnchorDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveMicAnchorDialogFragment.java index a136fce20..843ae3a74 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveMicAnchorDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveMicAnchorDialogFragment.java @@ -27,6 +27,7 @@ import com.yunbao.common.custom.CommonRefreshView; import com.yunbao.common.dialog.AbsDialogFragment; import com.yunbao.common.http.API; import com.yunbao.common.http.HttpCallback; +import com.yunbao.common.http.LiveHttpConsts; import com.yunbao.common.http.LiveHttpUtil; import com.yunbao.common.http.ResponseModel; import com.yunbao.common.manager.MicUserManager; @@ -371,7 +372,7 @@ public class LiveMicAnchorDialogFragment extends AbsDialogFragment implements Vi @Override public void onDestroy() { - LiveHttpUtil.cancel("getUserLists"); + LiveHttpUtil.cancel(LiveHttpConsts.GET_USER_LIST); super.onDestroy(); } diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveMicUserDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveMicUserDialogFragment.java index 4507ceb98..bdb1b066b 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveMicUserDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveMicUserDialogFragment.java @@ -25,6 +25,7 @@ import com.yunbao.common.custom.CommonRefreshView; import com.yunbao.common.dialog.AbsDialogFragment; import com.yunbao.common.http.HttpCallback; import com.yunbao.common.http.HttpClient; +import com.yunbao.common.http.LiveHttpConsts; import com.yunbao.common.manager.imrongcloud.RongcloudIMManager; import com.yunbao.common.utils.DialogUitl; import com.yunbao.common.utils.DpUtil; @@ -407,7 +408,7 @@ public class LiveMicUserDialogFragment extends AbsDialogFragment implements View @Override public void onDestroy() { mLiveGuardInfo = null; - LiveHttpUtil.cancel("getUserLists"); + LiveHttpUtil.cancel(LiveHttpConsts.GET_USER_LIST); super.onDestroy(); } diff --git a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java index cc589f42e..9e1ff9c2c 100644 --- a/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java +++ b/live/src/main/java/com/yunbao/live/dialog/LiveUserMoreDialogFragment.java @@ -33,6 +33,7 @@ import com.yunbao.common.custom.CommonRefreshView; import com.yunbao.common.dialog.AbsDialogFragment; import com.yunbao.common.http.API; import com.yunbao.common.http.HttpCallback; +import com.yunbao.common.http.LiveHttpConsts; import com.yunbao.common.utils.DpUtil; import com.yunbao.live.R; import com.yunbao.live.activity.LiveActivity; @@ -357,7 +358,7 @@ public class LiveUserMoreDialogFragment extends AbsDialogFragment implements Vie @Override public void onDestroy() { mLiveGuardInfo = null; - LiveHttpUtil.cancel("getUserLists"); + LiveHttpUtil.cancel(LiveHttpConsts.GET_USER_LIST); super.onDestroy(); }