This commit is contained in:
kunfei
2022-03-29 22:31:46 +08:00
parent d57a70b482
commit db9cbb5d6d
2 changed files with 2 additions and 2 deletions

View File

@@ -161,7 +161,7 @@ class AudioPlayActivity :
}
binding.composeView.setContent {
AppTheme {
TimerView(
TimerDialog(
state = timerViewState,
binding.ivTimer
)

View File

@@ -12,7 +12,7 @@ import io.legado.app.service.AudioPlayService
@Composable
fun TimerView(state: MutableState<Boolean>, parent: View) {
fun TimerDialog(state: MutableState<Boolean>, parent: View) {
val intOffset = IntArray(2)
parent.getLocationInWindow(intOffset)
if (state.value) {