Skip to content

Commit

Permalink
Close AOD when no notifications are there
Browse files Browse the repository at this point in the history
  • Loading branch information
rlees85 authored and Domi04151309 committed May 31, 2024
1 parent 624a9b4 commit af608b3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ class NotificationService : NotificationListenerService() {

override fun onNotificationRemoved(notification: StatusBarNotification) {
updateValues()

if (
CombinedServiceReceiver.isAlwaysOnRunning &&
Rules.isAmbientMode(this) &&
count < 1
) {
AlwaysOn.finish()
}
}

private fun updateValues() {
Expand Down

0 comments on commit af608b3

Please sign in to comment.