Update resize logic & use libass-media 0.4.0

This commit is contained in:
Damontecres 2026-03-05 20:59:01 -05:00
parent fc5babac45
commit 5db6d2c901
No known key found for this signature in database
2 changed files with 12 additions and 8 deletions

View file

@ -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 }
}
}
}
},

View file

@ -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"