Skip to content

Commit

Permalink
fix: enableService 不生效 (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 26, 2023
1 parent 43c45e1 commit b1d0e66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class GkdAbService : CompositionAbService({
}
val loopCheckTask = MutableStateFlow(0)
fun newQueryTask(eventNode: AccessibilityNodeInfo? = null) {
if (!storeFlow.value.enableService) return
val ctx = if (System.currentTimeMillis() - appChangeTime < 5000L) {
Dispatchers.IO
} else {
Expand Down Expand Up @@ -249,8 +250,6 @@ class GkdAbService : CompositionAbService({
return@launch
}

if (!storeFlow.value.enableService) return@launch

newQueryTask(eventNode)
}
}
Expand Down

0 comments on commit b1d0e66

Please sign in to comment.