fixed div by zero

This commit is contained in:
LagradOst 2023-08-23 17:08:26 +02:00
parent d436171a2f
commit bac2ee9805

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) {