mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-05 15:49:22 +00:00
Fix crash on extreme pip aspect ratios
This commit is contained in:
parent
a830c918ab
commit
4edd8ee1ea
3 changed files with 3 additions and 4 deletions
|
@ -2231,11 +2231,11 @@ class VideoDetailView : ConstraintLayout {
|
||||||
videoSourceHeight = 9;
|
videoSourceHeight = 9;
|
||||||
}
|
}
|
||||||
val aspectRatio = videoSourceWidth.toDouble() / videoSourceHeight;
|
val aspectRatio = videoSourceWidth.toDouble() / videoSourceHeight;
|
||||||
if(aspectRatio > 3) {
|
if(aspectRatio > 2.38) {
|
||||||
videoSourceWidth = 16;
|
videoSourceWidth = 16;
|
||||||
videoSourceHeight = 9;
|
videoSourceHeight = 9;
|
||||||
}
|
}
|
||||||
else if(aspectRatio < 0.3) {
|
else if(aspectRatio < 0.43) {
|
||||||
videoSourceHeight = 16;
|
videoSourceHeight = 16;
|
||||||
videoSourceWidth = 9;
|
videoSourceWidth = 9;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,5 @@
|
||||||
"35ae969a-a7db-11ed-afa1-0242ac120002"
|
"35ae969a-a7db-11ed-afa1-0242ac120002"
|
||||||
],
|
],
|
||||||
"SOURCES_UNDER_CONSTRUCTION": {
|
"SOURCES_UNDER_CONSTRUCTION": {
|
||||||
"Subscribestar": "logo_subscribestar"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,6 @@
|
||||||
"35ae969a-a7db-11ed-afa1-0242ac120002"
|
"35ae969a-a7db-11ed-afa1-0242ac120002"
|
||||||
],
|
],
|
||||||
"SOURCES_UNDER_CONSTRUCTION": {
|
"SOURCES_UNDER_CONSTRUCTION": {
|
||||||
"Subscribestar": "logo_subscribestar"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue