合并接口第一次上传
This commit is contained in:
@@ -105,7 +105,6 @@ import com.yunbao.main.http.MainHttpConsts;
|
||||
import com.yunbao.main.http.MainHttpUtil;
|
||||
import com.yunbao.main.interfaces.MainAppBarLayoutListener;
|
||||
import com.yunbao.main.manager.imrongcloud.ConversationIMListManager;
|
||||
import com.yunbao.main.presenter.CheckLivePresenter;
|
||||
import com.yunbao.main.utils.GenerateTestUserSig;
|
||||
import com.yunbao.main.views.FloatBannerView;
|
||||
import com.yunbao.main.views.MainHomeCommunityViewHolder;
|
||||
@@ -167,10 +166,8 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
private boolean mHided;
|
||||
|
||||
private ProcessResultUtil mProcessResultUtil;
|
||||
private CheckLivePresenter mCheckLivePresenter;
|
||||
private boolean mFristLoad;
|
||||
private long mLastClickBackTime;//上次点击back键的时间
|
||||
private HttpCallback mGetLiveSdkCallback;
|
||||
private String mUrlCsd;
|
||||
private TextView v_table_redpoint;
|
||||
private View v_table_redpoint_me;
|
||||
@@ -878,9 +875,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
MainHttpUtil.cancel(MainHttpConsts.REQUEST_BONUS);
|
||||
MainHttpUtil.cancel(MainHttpConsts.GET_BONUS);
|
||||
MainHttpUtil.cancel(MainHttpConsts.SET_DISTRIBUT);
|
||||
if (mCheckLivePresenter != null) {
|
||||
mCheckLivePresenter.cancel();
|
||||
}
|
||||
|
||||
LocationUtil.getInstance().stopLocation();
|
||||
if (mProcessResultUtil != null) {
|
||||
mProcessResultUtil.release();
|
||||
@@ -907,14 +902,12 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
* 观看直播
|
||||
*/
|
||||
public void watchLive(LiveBean liveBean, String key, int position) {
|
||||
if (mCheckLivePresenter == null) {
|
||||
mCheckLivePresenter = new CheckLivePresenter(mContext);
|
||||
}
|
||||
if (CommonAppConfig.LIVE_ROOM_SCROLL) {
|
||||
mCheckLivePresenter.watchLive(liveBean, key, position);
|
||||
} else {
|
||||
mCheckLivePresenter.watchLive(liveBean);
|
||||
}
|
||||
new LiveRoomCheckLivePresenter(mContext, liveBean.getUid(), liveBean.getStream(), new LiveRoomCheckLivePresenter.NewActionListener() {
|
||||
@Override
|
||||
public void onLiveRoomChanged(String liveUid, String stream, int liveType, String liveTypeVal, String liveSdk) {
|
||||
RouteUtil.forwardLiveAudienceActivity(liveBean, liveType, Integer.parseInt(liveTypeVal), Integer.parseInt(liveSdk));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -144,6 +144,8 @@ public abstract class AbsMainListChildViewHolder extends AbsMainViewHolder imple
|
||||
@Override
|
||||
public void onItemClick(ListBean bean, int position) {
|
||||
if (bean.getIslive() == 1) {
|
||||
|
||||
|
||||
LiveHttpUtil.getLiveInfo(bean.getUid(), new HttpCallback() {
|
||||
@Override
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
|
||||
Reference in New Issue
Block a user