fix [修复-精彩直播显示位置]

This commit is contained in:
hch 2024-03-28 13:06:44 +08:00
parent 415a532351
commit 0481db2570

View File

@ -519,12 +519,9 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
//选中监听 //选中监听
mTabButtonGroup.addTabButtonGroupChangeListener((view, index) -> { mTabButtonGroup.addTabButtonGroupChangeListener((view, index) -> {
if (index == 0) { if (index == 1) {
floatBanner.setVisibility(View.GONE); isfloatBannernet = true;
floatRedPacket.setVisibility(View.GONE); initAnchorRecommendBanner();
floatWarOrder.setVisibility(View.GONE);
findViewById(R.id.banner_click).setVisibility(View.GONE);
isfloatBannernet = false;
} else if (index == 2) { } else if (index == 2) {
floatBanner.setVisibility(View.GONE); floatBanner.setVisibility(View.GONE);
floatRedPacket.setVisibility(View.GONE); floatRedPacket.setVisibility(View.GONE);
@ -533,8 +530,11 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
isfloatBannernet = false; isfloatBannernet = false;
if (mainMessageViewHolder != null) mainMessageViewHolder.onResume(); if (mainMessageViewHolder != null) mainMessageViewHolder.onResume();
} else { } else {
isfloatBannernet = true; floatBanner.setVisibility(View.GONE);
initAnchorRecommendBanner(); floatRedPacket.setVisibility(View.GONE);
floatWarOrder.setVisibility(View.GONE);
findViewById(R.id.banner_click).setVisibility(View.GONE);
isfloatBannernet = false;
} }
}); });
//获取指导员账号 //获取指导员账号
@ -545,8 +545,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
} }
private void showFirstLogin() { private void showFirstLogin() {
LiveNetManager.get(mContext) LiveNetManager.get(mContext).isFirstLogin(new com.yunbao.common.http.base.HttpCallback<FirstLoginBean>() {
.isFirstLogin(new com.yunbao.common.http.base.HttpCallback<FirstLoginBean>() {
@Override @Override
public void onSuccess(FirstLoginBean data) { public void onSuccess(FirstLoginBean data) {
if (data.getStatus() == 0) { if (data.getStatus() == 0) {