Skip to content

Commit

Permalink
fix: failed get sealed instance
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 28, 2023
1 parent 05d2b69 commit 1e398fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 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 @@ -211,7 +211,13 @@ class GkdAbService : CompositionAbService({
val eventNode = if (event.className == null) {
null // https://github.com/gkd-kit/gkd/issues/426 event.clear 已被系统调用
} else {
event.source
try {
// 仍然报错 Cannot perform this action on a not sealed instance.
// TODO 原因未知
event.source
} catch (e: Exception) {
null
}
}
val oldAppId = topActivityFlow.value.appId
val rightAppId = if (oldAppId == evAppId) {
Expand Down

0 comments on commit 1e398fc

Please sign in to comment.