Skip to content

Commit

Permalink
修复一个判断问题
Browse files Browse the repository at this point in the history
  • Loading branch information
teble committed Jul 1, 2022
1 parent 0ff5c7e commit 67fa36c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ class CoreServiceHook : BaseHook() {
if (param.thisObject::class.java != cCoreService) {
return
}
LogUtil.d("CoreService onStartCommand")
val args = param.args
val service = param.thisObject as Service
val intent = args[0] as Intent?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ object XANotification {
}
setOngoing(onGoing)
}.build()
notificationManager.notify(if (isTask) atomicId++ else NOTIFICATION_ID, mNotification)
notificationManager.notify(if (!isTask) atomicId++ else NOTIFICATION_ID, mNotification)
}

fun stop() {
Expand Down

0 comments on commit 67fa36c

Please sign in to comment.