pull/1740/head
kunfei 3 years ago
parent d57a70b482
commit db9cbb5d6d
  1. 2
      app/src/main/java/io/legado/app/ui/book/audio/AudioPlayActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/audio/ComposeView.kt

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

@ -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) {

Loading…
Cancel
Save