新增首页开播按钮防抖
This commit is contained in:
parent
2fb0afef7d
commit
8a83f558e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user