fixed div by zero

This commit is contained in:
LagradOst 2023-08-23 17:08:26 +02:00
parent d436171a2f
commit bac2ee9805
1 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,8 @@ open class ResultTrailerPlayer : ResultFragmentPhone(), IOnBackPressed {
private fun fixPlayerSize() {
playerWidthHeight?.let { (w, h) ->
if(w <= 0 || h <= 0) return@let
val orientation = context?.resources?.configuration?.orientation ?: return
val sw = if (orientation == Configuration.ORIENTATION_LANDSCAPE) {