Skip to content

Commit

Permalink
fix: failed get event.source (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 27, 2023
1 parent 6af00a4 commit ad44205
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/kotlin/li/songe/gkd/service/GkdAbService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,11 @@ class GkdAbService : CompositionAbService({


eventExecutor.execute launch@{
val eventNode = event.source ?: return@launch
val eventNode = if (event.className == null) {
null // https://github.com/gkd-kit/gkd/issues/426 event.clear 已被系统调用
} else {
event.source
}
val oldAppId = topActivityFlow.value.appId
val rightAppId = if (oldAppId == evAppId) {
oldAppId
Expand Down

0 comments on commit ad44205

Please sign in to comment.