فهرست منبع

1.优化代码

王鹏鹏 2 سال پیش
والد
کامیت
8902fd9539
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      game/src/main/java/com/yingyangfly/game/introduction/GameIntroductionActivity.kt

+ 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 {