Skip to content

Commit

Permalink
修改Notify實現
Browse files Browse the repository at this point in the history
  • Loading branch information
qwe7002 committed Dec 11, 2024
1 parent 2398b30 commit 8ad15bd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class NotifyListenerService : NotificationListenerService() {
preferences = Paper.book("preferences")
}

override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
/*override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
startForegroundNotification()
return START_STICKY
}
Expand All @@ -57,7 +57,7 @@ class NotifyListenerService : NotificationListenerService() {
Notify.NOTIFICATION_LISTENER_SERVICE, notification.build()
)
}
}
}*/

override fun onNotificationPosted(sbn: StatusBarNotification) {
val packageName = sbn.packageName
Expand Down

0 comments on commit 8ad15bd

Please sign in to comment.