Fix crash on extreme pip aspect ratios

This commit is contained in:
Kelvin 2024-04-23 17:31:10 +02:00
parent a830c918ab
commit 4edd8ee1ea
3 changed files with 3 additions and 4 deletions

View file

@ -2231,11 +2231,11 @@ class VideoDetailView : ConstraintLayout {
videoSourceHeight = 9;
}
val aspectRatio = videoSourceWidth.toDouble() / videoSourceHeight;
if(aspectRatio > 3) {
if(aspectRatio > 2.38) {
videoSourceWidth = 16;
videoSourceHeight = 9;
}
else if(aspectRatio < 0.3) {
else if(aspectRatio < 0.43) {
videoSourceHeight = 16;
videoSourceWidth = 9;
}

View file

@ -15,6 +15,5 @@
"35ae969a-a7db-11ed-afa1-0242ac120002"
],
"SOURCES_UNDER_CONSTRUCTION": {
"Subscribestar": "logo_subscribestar"
}
}

View file

@ -15,6 +15,6 @@
"35ae969a-a7db-11ed-afa1-0242ac120002"
],
"SOURCES_UNDER_CONSTRUCTION": {
"Subscribestar": "logo_subscribestar"
}
}