Commit 088715d
committed
fix(local-notifications): honor autoCancel when a notification is tapped
handleNotificationActionPerformed dismissed the tapped notification
unconditionally, so `autoCancel: false` had no effect on tap even though
the builder sets setAutoCancel() from it. Read autoCancel from the
notification payload carried in the intent (default true) and skip the
explicit dismissal when the caller opted out.
Fixes the behavior reported in #1384.1 parent 0bfde98 commit 088715d
1 file changed
Lines changed: 9 additions & 2 deletions
File tree
- local-notifications/android/src/main/java/com/capacitorjs/plugins/localnotifications
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| |||
93 | 91 | | |
94 | 92 | | |
95 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
96 | 103 | | |
97 | 104 | | |
98 | 105 | | |
| |||
0 commit comments