docs(reader/transition): Add todo

This commit is contained in:
Ahmad Ansori Palembani 2024-06-27 08:30:27 +07:00
parent 9ab5aaf1be
commit c0bf67eabd
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 6 additions and 8 deletions

View file

@ -12,10 +12,6 @@ import androidx.appcompat.widget.AppCompatTextView
import androidx.compose.material3.CircularProgressIndicator import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.ui.platform.ComposeView import androidx.compose.ui.platform.ComposeView
import androidx.core.view.updatePaddingRelative import androidx.core.view.updatePaddingRelative
import eu.kanade.tachiyomi.R
import yokai.i18n.MR
import yokai.util.lang.getString
import dev.icerock.moko.resources.compose.stringResource
import eu.kanade.tachiyomi.ui.reader.model.ChapterTransition import eu.kanade.tachiyomi.ui.reader.model.ChapterTransition
import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter
import eu.kanade.tachiyomi.ui.reader.viewer.ReaderButton import eu.kanade.tachiyomi.ui.reader.viewer.ReaderButton
@ -27,7 +23,9 @@ import kotlinx.coroutines.Job
import kotlinx.coroutines.MainScope import kotlinx.coroutines.MainScope
import kotlinx.coroutines.flow.collectLatest import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import yokai.i18n.MR
import yokai.presentation.theme.YokaiTheme import yokai.presentation.theme.YokaiTheme
import yokai.util.lang.getString
/** /**
* View of the ViewPager that contains a chapter transition. * View of the ViewPager that contains a chapter transition.
@ -111,6 +109,7 @@ class PagerTransitionHolder(
* Sets the loading state on the pages container. * Sets the loading state on the pages container.
*/ */
private fun setLoading() { private fun setLoading() {
// FIXME: Seems to be overflowing
val progress = ComposeView(context).apply { val progress = ComposeView(context).apply {
setContent { setContent {
YokaiTheme { CircularProgressIndicator() } YokaiTheme { CircularProgressIndicator() }

View file

@ -11,10 +11,6 @@ import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.ui.platform.ComposeView import androidx.compose.ui.platform.ComposeView
import androidx.core.view.isNotEmpty import androidx.core.view.isNotEmpty
import androidx.core.view.isVisible import androidx.core.view.isVisible
import eu.kanade.tachiyomi.R
import yokai.i18n.MR
import yokai.util.lang.getString
import dev.icerock.moko.resources.compose.stringResource
import eu.kanade.tachiyomi.ui.reader.model.ChapterTransition import eu.kanade.tachiyomi.ui.reader.model.ChapterTransition
import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter import eu.kanade.tachiyomi.ui.reader.model.ReaderChapter
import eu.kanade.tachiyomi.ui.reader.viewer.ReaderTransitionView import eu.kanade.tachiyomi.ui.reader.viewer.ReaderTransitionView
@ -24,7 +20,9 @@ import kotlinx.coroutines.Job
import kotlinx.coroutines.MainScope import kotlinx.coroutines.MainScope
import kotlinx.coroutines.flow.collectLatest import kotlinx.coroutines.flow.collectLatest
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import yokai.i18n.MR
import yokai.presentation.theme.YokaiTheme import yokai.presentation.theme.YokaiTheme
import yokai.util.lang.getString
/** /**
* Holder of the webtoon viewer that contains a chapter transition. * Holder of the webtoon viewer that contains a chapter transition.
@ -109,6 +107,7 @@ class WebtoonTransitionHolder(
* Sets the loading state on the pages container. * Sets the loading state on the pages container.
*/ */
private fun setLoading() { private fun setLoading() {
// FIXME: Seems to be overflowing
val progress = ComposeView(context).apply { val progress = ComposeView(context).apply {
setContent { setContent {
YokaiTheme { CircularProgressIndicator() } YokaiTheme { CircularProgressIndicator() }