Skip to content

Commit

Permalink
Fixes from master
Browse files Browse the repository at this point in the history
  • Loading branch information
rlees85 committed May 14, 2024
1 parent 98a4fb5 commit 25f4cea
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ class NotificationService : NotificationListenerService() {
val rules = Rules(this)
@Suppress("ComplexCondition")
if (
isValidNotification(notification)
&& !CombinedServiceReceiver.isScreenOn
&& !CombinedServiceReceiver.isAlwaysOnRunning
isValidNotification(notification) &&
!CombinedServiceReceiver.isScreenOn &&
!CombinedServiceReceiver.isAlwaysOnRunning &&
Rules.isAmbientMode(this) &&
rules.canShow(this)
&& count >= 1
rules.canShow(this) &&
count >= 1
) {
startActivity(
Intent(
Expand All @@ -51,14 +51,13 @@ class NotificationService : NotificationListenerService() {
}
}

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

val rules = Rules(this, prefs)
if (
CombinedServiceReceiver.isAlwaysOnRunning
&& rules.isAmbientMode()
&& count < 1
CombinedServiceReceiver.isAlwaysOnRunning &&
Rules.isAmbientMode(this) &&
count < 1
) {
AlwaysOn.finish()
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ kotlin.code.style=official
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.nonTransitiveRClass=true

0 comments on commit 25f4cea

Please sign in to comment.