From db9cbb5d6da766802eb3ccf2f5f16a5fcc208400 Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 29 Mar 2022 22:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt | 2 +- app/src/main/java/io/legado/app/ui/book/audio/ComposeView.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {