小遊戲bug修改

This commit is contained in:
18401019693
2023-10-27 16:20:19 +08:00
parent bf7bc6b786
commit f356446c03
10 changed files with 52 additions and 20 deletions

View File

@@ -3,7 +3,17 @@ package com.yunbao.common.event;
import com.yunbao.common.bean.BaseModel;
public class HideShowEvent extends BaseModel {
private boolean isClose = false;
private boolean isClose = false;
private boolean hide = false;
public boolean isHide() {
return hide;
}
public HideShowEvent setHide(boolean hide) {
this.hide = hide;
return this;
}
public boolean isClose() {
return isClose;

View File

@@ -62,7 +62,7 @@ public class IMLoginManager extends BaseCacheManager {
}
public void setSudGameMin() {
put("SudGameMin", "1");
put("SudGameMin", "0");
}
public boolean getSudGameMin() {

View File

@@ -163,9 +163,12 @@ public class LiveSudGamePopup extends BottomPopupView {
@Subscribe(threadMode = ThreadMode.MAIN)
public void onHideShow(HideShowEvent event) {
if (event.isClose()){
if (event.isClose()) {
dialog.dismiss();
}else {
} else {
if (event.isHide()) {
findViewById(R.id.min_game).setVisibility(GONE);
}
dialog.show();
}