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
53886cce
Commit
53886cce
authored
Nov 26, 2015
by
Rich Sage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Catch previously-valid notification non-int keys.
parent
829501a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Manager.java
src/android/notification/Manager.java
+5
-0
No files found.
src/android/notification/Manager.java
View file @
53886cce
...
@@ -30,6 +30,7 @@ import android.content.SharedPreferences;
...
@@ -30,6 +30,7 @@ import android.content.SharedPreferences;
import
org.json.JSONException
;
import
org.json.JSONException
;
import
org.json.JSONObject
;
import
org.json.JSONObject
;
import
java.lang.NumberFormatException
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.Iterator
;
import
java.util.Iterator
;
...
@@ -193,7 +194,11 @@ public class Manager {
...
@@ -193,7 +194,11 @@ public class Manager {
ArrayList
<
Integer
>
ids
=
new
ArrayList
<
Integer
>();
ArrayList
<
Integer
>
ids
=
new
ArrayList
<
Integer
>();
for
(
String
key
:
keys
)
{
for
(
String
key
:
keys
)
{
try
{
ids
.
add
(
Integer
.
parseInt
(
key
));
ids
.
add
(
Integer
.
parseInt
(
key
));
}
catch
(
NumberFormatException
e
)
{
e
.
printStackTrace
();
}
}
}
return
ids
;
return
ids
;
...
...
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