Sfoglia il codice sorgente

1.优化游戏介绍页面点击进入游戏后游戏介绍文字仍在播放bug

王鹏鹏 2 anni fa
parent
commit
a3f150950a

+ 1 - 3
game/src/main/java/com/yingyangfly/game/introduction/GameIntroductionActivity.kt

@@ -121,9 +121,7 @@ class GameIntroductionActivity :
 
     override fun onPause() {
         if (voicePlayer != null) {
-            if (voicePlayer!!.isPlaying) {
-                voicePlayer?.stop()
-            }
+            voicePlayer?.stop()
         }
         if (mVodPlayer != null) {
             mVodPlayer?.pause()