优化
This commit is contained in:
1 parent
bb369a5eb2
commit
b8d1bc2d60
2 files changed
+2
-2
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user