Commit 3f68215
committed
notification: do not allow empty id with --ongoing
Ongoing notifications can only be removed with
termux-notification-remove, which requires the notification id.
An ongoing notification without an id requires a reboot to be removed.
This commit forbids creating such an "unremovable" notification.1 parent 0b1845f commit 3f68215
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
| |||
0 commit comments