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,7 +461,10 @@ fun PlaybackPageContent(
|
||||||
.apply(it)
|
.apply(it)
|
||||||
it.children.firstOrNull { it is AssSubtitleView }?.let {
|
it.children.firstOrNull { it is AssSubtitleView }?.let {
|
||||||
(it as? AssSubtitleView)?.apply {
|
(it as? AssSubtitleView)?.apply {
|
||||||
Timber.v("Resize: $playerSize")
|
val resized =
|
||||||
|
layoutParams.let { it.width != playerSize.width || it.height != playerSize.height }
|
||||||
|
if (resized) {
|
||||||
|
Timber.v("Resizing AssSubtitleView: $playerSize")
|
||||||
layoutParams =
|
layoutParams =
|
||||||
FrameLayout
|
FrameLayout
|
||||||
.LayoutParams(
|
.LayoutParams(
|
||||||
|
|
@ -470,6 +473,7 @@ fun PlaybackPageContent(
|
||||||
).apply { gravity = Gravity.CENTER }
|
).apply { gravity = Gravity.CENTER }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onReset = {
|
onReset = {
|
||||||
it.setCues(null)
|
it.setCues(null)
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ tvprovider = "1.1.0"
|
||||||
workRuntimeKtx = "2.11.1"
|
workRuntimeKtx = "2.11.1"
|
||||||
paletteKtx = "1.0.0"
|
paletteKtx = "1.0.0"
|
||||||
openapi-generator = "7.19.0"
|
openapi-generator = "7.19.0"
|
||||||
assMedia = "0.4.0-beta01"
|
assMedia = "0.4.0"
|
||||||
kotlinxCoroutinesTest = "1.10.2"
|
kotlinxCoroutinesTest = "1.10.2"
|
||||||
coreTesting = "2.2.0"
|
coreTesting = "2.2.0"
|
||||||
runner = "1.7.0"
|
runner = "1.7.0"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue