mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Update resize logic & use libass-media 0.4.0
This commit is contained in:
parent
fc5babac45
commit
5db6d2c901
2 changed files with 12 additions and 8 deletions
|
|
@ -461,13 +461,17 @@ fun PlaybackPageContent(
|
|||
.apply(it)
|
||||
it.children.firstOrNull { it is AssSubtitleView }?.let {
|
||||
(it as? AssSubtitleView)?.apply {
|
||||
Timber.v("Resize: $playerSize")
|
||||
layoutParams =
|
||||
FrameLayout
|
||||
.LayoutParams(
|
||||
playerSize.width,
|
||||
playerSize.height,
|
||||
).apply { gravity = Gravity.CENTER }
|
||||
val resized =
|
||||
layoutParams.let { it.width != playerSize.width || it.height != playerSize.height }
|
||||
if (resized) {
|
||||
Timber.v("Resizing AssSubtitleView: $playerSize")
|
||||
layoutParams =
|
||||
FrameLayout
|
||||
.LayoutParams(
|
||||
playerSize.width,
|
||||
playerSize.height,
|
||||
).apply { gravity = Gravity.CENTER }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ tvprovider = "1.1.0"
|
|||
workRuntimeKtx = "2.11.1"
|
||||
paletteKtx = "1.0.0"
|
||||
openapi-generator = "7.19.0"
|
||||
assMedia = "0.4.0-beta01"
|
||||
assMedia = "0.4.0"
|
||||
kotlinxCoroutinesTest = "1.10.2"
|
||||
coreTesting = "2.2.0"
|
||||
runner = "1.7.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue