Skip to content

Commit

Permalink
修复播放完成全屏时点击关闭播放出现空白屏
Browse files Browse the repository at this point in the history
  • Loading branch information
10miaomiao committed May 6, 2023
1 parent 6e08bdb commit 08ec19c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.widget.RelativeLayout
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.a10miaomiao.bilimiao.R
import com.a10miaomiao.bilimiao.comm.utils.DebugMiao
import org.kodein.di.DI
import org.kodein.di.DIAware

Expand All @@ -20,19 +21,20 @@ class CompletionBoxController(
val completionCloseBtn = activity.findViewById<View>(R.id.completion_close_btn)

init {
initErrorMessageBox()
initCompletionBox()
}

/**
* 错误信息对话框
*/
private fun initErrorMessageBox() {
private fun initCompletionBox() {
hide()
completionRetryBtn.setOnClickListener {
hide()
delegate.reloadPlayer()
}
completionCloseBtn.setOnClickListener {
delegate.controller.smallScreen()
hide()
delegate.closePlayer()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ErrorMessageBoxController(
delegate.reloadPlayer()
}
errorMessageCloseBtn.setOnClickListener {
delegate.controller.smallScreen()
hide()
delegate.closePlayer()
}
Expand Down

0 comments on commit 08ec19c

Please sign in to comment.