|
|
@@ -42,6 +42,7 @@ class GameIntroductionActivity :
|
|
|
private var gameCode: String = ""
|
|
|
private var playClass: String = ""
|
|
|
private var gameBean: GameBean? = null
|
|
|
+ private var homePage: Boolean = false
|
|
|
private var mVodPlayer: TXVodPlayer? = null
|
|
|
|
|
|
/**
|
|
|
@@ -53,6 +54,7 @@ class GameIntroductionActivity :
|
|
|
desn = intent.getStringExtra("desn") ?: ""
|
|
|
gameCode = intent.getStringExtra("gameCode") ?: ""
|
|
|
playClass = intent.getStringExtra("playClass") ?: ""
|
|
|
+ homePage = intent.getBooleanExtra("homePage", false)
|
|
|
voicePlayer = VoicePlayer.getInstance(mContext)
|
|
|
mVodPlayer = TXVodPlayer(mContext)
|
|
|
if (isEnterGame.not()) {
|
|
|
@@ -192,7 +194,7 @@ class GameIntroductionActivity :
|
|
|
if (isEnterGame) {
|
|
|
val exitGameDialog = ExitGameDialog()
|
|
|
exitGameDialog.onDialogClickListener = {
|
|
|
- if (TextUtils.equals("A", playClass)) {
|
|
|
+ if (homePage) {
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.home, mContext)
|
|
|
} else {
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.freeTrain, mContext)
|