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
c424fbc7
Commit
c424fbc7
authored
Dec 31, 2013
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in repeating intervals (see #43)
parent
c419f6b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Options.java
src/android/Options.java
+4
-3
No files found.
src/android/Options.java
View file @
c424fbc7
...
@@ -68,7 +68,9 @@ public class Options {
...
@@ -68,7 +68,9 @@ public class Options {
}
else
if
(
repeat
.
equalsIgnoreCase
(
"yearly"
))
{
}
else
if
(
repeat
.
equalsIgnoreCase
(
"yearly"
))
{
interval
=
AlarmManager
.
INTERVAL_DAY
*
365
;
interval
=
AlarmManager
.
INTERVAL_DAY
*
365
;
}
else
{
}
else
{
interval
=
Integer
.
getInteger
(
repeat
,
0
)
*
60000
;
try
{
interval
=
Integer
.
parseInt
(
repeat
)
*
60000
;
}
catch
(
Exception
e
)
{};
}
}
return
this
;
return
this
;
...
@@ -211,4 +213,4 @@ public class Options {
...
@@ -211,4 +213,4 @@ public class Options {
return
icon
;
return
icon
;
}
}
}
}
\ No newline at end of file
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