feat:恢复游戏dialog禁止空白取消

This commit is contained in:
max
2024-05-31 20:46:34 +08:00
parent d2d738f618
commit 2b0e52ac20
2 changed files with 1 additions and 4 deletions

View File

@@ -293,7 +293,7 @@ public class MainActivity extends BaseMvpActivity<IMainView, MainPresenter>
if (resumeGameDialogManager == null) {
resumeGameDialogManager = new DialogManager(this);
}
resumeGameDialogManager.showOkCancelDialog(getString(R.string.resume_game_tips), getString(R.string.join_organization_ok), getString(R.string.join_organization_no), new DialogManager.OkCancelDialogListener() {
resumeGameDialogManager.showOkCancelDialog(getString(R.string.resume_game_tips), getString(R.string.join_organization_ok), getString(R.string.join_organization_no), false, new DialogManager.OkCancelDialogListener() {
@Override
public void onOk() {
long gameId = JavaUtil.str2long(gameRoomInfo.getData().getMgId());

View File

@@ -1,13 +1,10 @@
package com.chwl.app.game.ui.game
import androidx.lifecycle.MutableLiveData
import com.chwl.app.R
import com.chwl.app.base.BaseViewModel
import com.chwl.app.game.core.GameContext
import com.chwl.app.game.core.GameStateAbility
import com.chwl.app.game.data.GameModel2
import com.chwl.core.bean.response.BeanResult
import com.chwl.library.utils.ResUtil
import kotlinx.coroutines.flow.MutableSharedFlow
class GameViewModel : BaseViewModel() {