Browse Source

1.添加直播中玩游戏功能

王鹏鹏 2 years ago
parent
commit
aa752d4212

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

@@ -41,8 +41,6 @@ class GameIntroductionActivity :
     private var gameInbetweenImage: String = ""
     private var gameBackgroundImage: String = ""
     private var gameBean: GameBean? = null
-    private var fullFlag = ""//0全屏  1非全屏
-    private var frameImg: String = ""
 
     override fun onCreate(savedInstanceState: Bundle?) {
         desn = intent.getStringExtra("desn") ?: ""
@@ -110,8 +108,6 @@ class GameIntroductionActivity :
                 desn = it.desn
                 gameInbetweenImage = it.gameInbetweenImage
                 gameBackgroundImage = it.gameBackgroundImage
-                fullFlag = it.fullFlag
-                frameImg = it.frameImg
                 if (TextUtils.isEmpty(it.gameVideoUrl).not()) {
                     loadVideo(it.gameVideoUrl)
                 }
@@ -187,8 +183,8 @@ class GameIntroductionActivity :
                             .withString("gameInbetweenImage", gameInbetweenImage)
                             .withString("gameBackgroundImage", gameBackgroundImage)
                             .withString("gameShortDesn", gameBean!!.gameShortDesn)
-                            .withString("fullFlag", fullFlag)
-                            .withString("frameImg", frameImg)
+                            .withString("fullFlag", gameBean!!.fullFlag)
+                            .withString("frameImg", gameBean!!.frameImg)
                             .withTransition(R.anim.leftin, R.anim.leftout)
                             .navigation(mContext)
                     }

+ 2 - 2
game/src/main/java/com/yingyangfly/game/play/PlayGameActivity.kt

@@ -69,8 +69,8 @@ class PlayGameActivity : BaseMVVMActivity<ActivityPlayGameBinding, PlayGameViewM
     private var gameResultDialog: GameResultDialog? = null
     private var fullFlag = ""//0全屏  1非全屏
     private var frameImg: String = ""
-    var mWebViewHeight = 0
-    var mWebViewWidth = 0
+    private var mWebViewHeight = 0
+    private var mWebViewWidth = 0
     private var mConstrainSet_one: ConstraintSet? = ConstraintSet()
 
     override fun onCreate(savedInstanceState: Bundle?) {