Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
a65f48c5
Commit
a65f48c5
authored
Dec 08, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #710 crash due to >500 notifications
parent
2d4033c3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
Builder.java
src/android/notification/Builder.java
+2
-2
No files found.
CHANGELOG.md
View file @
a65f48c5
...
@@ -4,6 +4,7 @@ ChangeLog
...
@@ -4,6 +4,7 @@ ChangeLog
Please also read the
[
Upgrade Guide
](
https://github.com/katzer/cordova-plugin-local-notifications/wiki/Upgrade-Guide
)
for more information.
Please also read the
[
Upgrade Guide
](
https://github.com/katzer/cordova-plugin-local-notifications/wiki/Upgrade-Guide
)
for more information.
#### Version 0.8.3 (not yet released)
#### Version 0.8.3 (not yet released)
-
Fixed #710 crash due to >500 notifications (Android)
-
Fixed crashing
`get(ID)`
if notification doesn't exist
-
Fixed crashing
`get(ID)`
if notification doesn't exist
#### Version 0.8.2 (08.11.2015)
#### Version 0.8.2 (08.11.2015)
...
...
src/android/notification/Builder.java
View file @
a65f48c5
...
@@ -162,7 +162,7 @@ public class Builder {
...
@@ -162,7 +162,7 @@ public class Builder {
.
putExtra
(
Options
.
EXTRA
,
options
.
toString
());
.
putExtra
(
Options
.
EXTRA
,
options
.
toString
());
PendingIntent
dpi
=
PendingIntent
.
getBroadcast
(
PendingIntent
dpi
=
PendingIntent
.
getBroadcast
(
context
,
0
,
deleteIntent
,
PendingIntent
.
FLAG_
CANCEL
_CURRENT
);
context
,
0
,
deleteIntent
,
PendingIntent
.
FLAG_
UPDATE
_CURRENT
);
builder
.
setDeleteIntent
(
dpi
);
builder
.
setDeleteIntent
(
dpi
);
}
}
...
@@ -186,7 +186,7 @@ public class Builder {
...
@@ -186,7 +186,7 @@ public class Builder {
int
requestCode
=
new
Random
().
nextInt
();
int
requestCode
=
new
Random
().
nextInt
();
PendingIntent
contentIntent
=
PendingIntent
.
getActivity
(
PendingIntent
contentIntent
=
PendingIntent
.
getActivity
(
context
,
requestCode
,
intent
,
PendingIntent
.
FLAG_
CANCEL
_CURRENT
);
context
,
requestCode
,
intent
,
PendingIntent
.
FLAG_
UPDATE
_CURRENT
);
builder
.
setContentIntent
(
contentIntent
);
builder
.
setContentIntent
(
contentIntent
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment