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
b93cf65c
Commit
b93cf65c
authored
Feb 21, 2018
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in match trigger where interval is every minute [ref #1533]
parent
fc41c7d0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
MatchTrigger.java
src/android/notification/trigger/MatchTrigger.java
+4
-0
MatchTrigger.cs
...tificationProxy/LocalNotification/Trigger/MatchTrigger.cs
+8
-0
No files found.
src/android/notification/trigger/MatchTrigger.java
View file @
b93cf65c
...
...
@@ -191,7 +191,11 @@ public class MatchTrigger extends IntervalTrigger {
else
return
null
;
case
HOUR:
if
(
cal
.
get
(
Calendar
.
MINUTE
)
<
now
.
get
(
Calendar
.
MINUTE
))
{
addToDate
(
cal
,
now
,
Calendar
.
HOUR_OF_DAY
,
1
);
}
else
{
addToDate
(
cal
,
now
,
Calendar
.
HOUR_OF_DAY
,
0
);
}
break
;
case
DAY:
case
WEEK:
...
...
src/windows/LocalNotificationProxy/LocalNotificationProxy/LocalNotification/Trigger/MatchTrigger.cs
View file @
b93cf65c
...
...
@@ -207,7 +207,15 @@ namespace LocalNotificationProxy.LocalNotification.Trigger
break
;
case
Unit
.
HOUR
:
if
(
date
.
Minute
<
now
.
Minute
)
{
date
=
date
.
AddHours
(
now
.
Hour
-
date
.
Hour
+
1
);
}
else
{
date
=
date
.
AddHours
(
now
.
Hour
-
date
.
Hour
);
}
break
;
case
Unit
.
DAY
:
case
Unit
.
WEEK
:
...
...
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