diff --git a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java index 29e38cf5f..03792f666 100644 --- a/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainHomeViewHolder.java @@ -43,6 +43,7 @@ import com.yunbao.common.utils.ProcessResultUtil; import com.yunbao.common.utils.RouteUtil; import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.WordUtil; +import com.yunbao.common.views.weight.ViewClicksAntiShake; import com.yunbao.live.LiveConfig; import com.yunbao.live.activity.LiveAnchorActivity; import com.yunbao.live.activity.LiveRyAnchorActivity; @@ -69,6 +70,7 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder { private ImageView img_trophy; private boolean floatWarOrder; private TextView tvPlay; + private ImageView startLive; public boolean isFloatWarOrder() { return floatWarOrder; @@ -87,9 +89,10 @@ public class MainHomeViewHolder extends AbsMainHomeParentViewHolder { public void init() { super.init(); mProcessResultUtil = new ProcessResultUtil((FragmentActivity) mContext); - findViewById(R.id.btn_start_live).setOnClickListener(new View.OnClickListener() { + startLive = (ImageView) findViewById(R.id.btn_start_live); + ViewClicksAntiShake.clicksAntiShake(startLive, new ViewClicksAntiShake.ViewClicksCallBack() { @Override - public void onClick(View v) { + public void onViewClicks() { boolean isAnchor = IMLoginManager.get(mContext).getUserInfo().anchorUserType(); if (isAnchor) { String[] permissions;