fixed div by zero
This commit is contained in:
parent
d436171a2f
commit
bac2ee9805
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue