Commit 669fa51
committed
Fix bug for generating notification's android notification ID
* Bug: The private setter was generating a random android notification ID but this private setter is never called. Setters are not triggered in initialization. This resulted in the android notification ID always being zero for every notification.
* The fix: Now we set the random ID in initialization, and make the notification property immutable (a val instead of var) as it is never re-set anyway.1 parent fea6fa1 commit 669fa51
File tree
1 file changed
+7
-15
lines changed- OneSignalSDK/onesignal/notifications/src/main/java/com/onesignal/notifications/internal/common
1 file changed
+7
-15
lines changedLines changed: 7 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 13 | + | |
26 | 14 | | |
27 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
28 | 19 | | |
| 20 | + | |
29 | 21 | | |
30 | 22 | | |
31 | 23 | | |
| |||
0 commit comments