优化
This commit is contained in:
@@ -161,7 +161,7 @@ class AudioPlayActivity :
|
|||||||
}
|
}
|
||||||
binding.composeView.setContent {
|
binding.composeView.setContent {
|
||||||
AppTheme {
|
AppTheme {
|
||||||
TimerView(
|
TimerDialog(
|
||||||
state = timerViewState,
|
state = timerViewState,
|
||||||
binding.ivTimer
|
binding.ivTimer
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import io.legado.app.service.AudioPlayService
|
|||||||
|
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun TimerView(state: MutableState<Boolean>, parent: View) {
|
fun TimerDialog(state: MutableState<Boolean>, parent: View) {
|
||||||
val intOffset = IntArray(2)
|
val intOffset = IntArray(2)
|
||||||
parent.getLocationInWindow(intOffset)
|
parent.getLocationInWindow(intOffset)
|
||||||
if (state.value) {
|
if (state.value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user