Skip to content

Commit

Permalink
#1282 send multiple key events from the same getevent key
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Aug 27, 2024
1 parent 600d8a4 commit 49d1743
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class DetectScreenOffKeyEventsController(
line ?: continue

KeyEventUtils.GET_EVENT_LABEL_TO_KEYCODE.forEach { (label, keyCode) ->
if (line?.contains(label) == true) {
if (line!!.contains(label)) {
val deviceLocation =
deviceLocationRegex.find(line!!)?.value ?: return@forEach

Expand All @@ -99,8 +99,6 @@ class DetectScreenOffKeyEventsController(
)
}
}

return@forEach
}
}
}
Expand Down

0 comments on commit 49d1743

Please sign in to comment.