diff --git a/app/src/main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt b/app/src/main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt index acbde8820..0da186aae 100644 --- a/app/src/main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt @@ -161,7 +161,7 @@ class AudioPlayActivity : } binding.composeView.setContent { AppTheme { - TimerView( + TimerDialog( state = timerViewState, binding.ivTimer ) diff --git a/app/src/main/java/io/legado/app/ui/book/audio/ComposeView.kt b/app/src/main/java/io/legado/app/ui/book/audio/ComposeView.kt index da32c62c9..c8fbd47ef 100644 --- a/app/src/main/java/io/legado/app/ui/book/audio/ComposeView.kt +++ b/app/src/main/java/io/legado/app/ui/book/audio/ComposeView.kt @@ -12,7 +12,7 @@ import io.legado.app.service.AudioPlayService @Composable -fun TimerView(state: MutableState, parent: View) { +fun TimerDialog(state: MutableState, parent: View) { val intOffset = IntArray(2) parent.getLocationInWindow(intOffset) if (state.value) {