Browse Source

1.优化代码

王鹏鹏 2 years ago
parent
commit
8902fd9539

+ 2 - 5
game/src/main/java/com/yingyangfly/game/introduction/GameIntroductionActivity.kt

@@ -194,11 +194,8 @@ class GameIntroductionActivity :
                             if (isEnterGame) {
                                 val exitGameDialog = ExitGameDialog()
                                 exitGameDialog.onDialogClickListener = {
-                                    if (homePage) {
-                                        JumpUtil.jumpActivity(RouterUrlCommon.home, mContext)
-                                    } else {
-                                        JumpUtil.jumpActivity(RouterUrlCommon.freeTrain, mContext)
-                                    }
+                                    LiveEventBusUtil.send(RxBusCodes.CALLQUITGAME, "")
+                                    finish()
                                 }
                                 exitGameDialog.show(supportFragmentManager, "exitGameDialog")
                             } else {