style: Fix progress indicator being at the bottom for webtoon

This commit is contained in:
Ahmad Ansori Palembani 2024-06-13 12:42:48 +07:00
parent f4cd590eae
commit 025a3a914c
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.ui.reader.viewer.webtoon
import android.content.res.Resources
import android.graphics.Color
import android.view.Gravity
import android.view.LayoutInflater
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
@ -303,6 +304,7 @@ class WebtoonPageHolder(
val progress = ReaderProgressIndicator(context).apply {
updateLayoutParams<FrameLayout.LayoutParams> {
gravity = Gravity.CENTER_HORIZONTAL
updateMargins(top = parentHeight / 4)
}
}