Closed AgentConDier closed 5 years ago
Hey,
Thanks for spotting this, there's indeed a problem with --alert-once
. However, I think that for transparency with the Android method (setOnlyAlertOnce()
) and in compliance with Android's default (false
, at least on my device), the change should be made in https://github.com/termux/termux-api/blob/master/app/src/main/java/com/termux/api/NotificationAPI.java#L80, by setting the default to false
.
Regarding the second commit and the missing comma, that's also a nice catch!
Merged the second commit. Closing. Again, thanks @AgentConDier !
By default, editing a notification creates no alert, so alert-once had no effect. Changed to flag alert-always that sets alert-once to false if present. (Defaults to true in https://github.com/termux/termux-api/blob/master/app/src/main/java/com/termux/api/NotificationAPI.java#L80)