mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed div by zero
This commit is contained in:
parent
d436171a2f
commit
bac2ee9805
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ open class ResultTrailerPlayer : ResultFragmentPhone(), IOnBackPressed {
|
||||||
|
|
||||||
private fun fixPlayerSize() {
|
private fun fixPlayerSize() {
|
||||||
playerWidthHeight?.let { (w, h) ->
|
playerWidthHeight?.let { (w, h) ->
|
||||||
|
if(w <= 0 || h <= 0) return@let
|
||||||
|
|
||||||
val orientation = context?.resources?.configuration?.orientation ?: return
|
val orientation = context?.resources?.configuration?.orientation ?: return
|
||||||
|
|
||||||
val sw = if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
val sw = if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||||
|
|
Loading…
Reference in a new issue