Cleanup: Move ReaderProgressIndicator to compose

This commit is contained in:
tarsin committed 2023-07-08 14:36:42 +08:00
1 parent 07b1f39796
commit e46008df55
2 files changed
+2 -4

No files matched your search

@@ -19,9 +19,7 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.rotate
@Composable
fun CombinedCircularProgressIndicator(
progress: Float,
) {
fun CombinedCircularProgressIndicator(progress: Float) {
val animatedProgress by animateFloatAsState(
targetValue = progress,
animationSpec = ProgressIndicatorDefaults.ProgressAnimationSpec,
@@ -37,7 +37,7 @@ class PagerPageHolder(
/**
* Loading progress bar to indicate the current progress.
*/
private val progressIndicator: ReaderProgressIndicator = ReaderProgressIndicator(readerThemedContext)
private val progressIndicator = ReaderProgressIndicator(readerThemedContext)
/**
* Error layout to show when the image fails to load.