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
978c5550
Commit
978c5550
authored
Nov 09, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lint warnings
parent
620d3fc4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
AbstractClearReceiver.java
src/android/notification/receiver/AbstractClearReceiver.java
+4
-0
AbstractClickReceiver.java
src/android/notification/receiver/AbstractClickReceiver.java
+7
-0
AbstractTriggerReceiver.java
...ndroid/notification/receiver/AbstractTriggerReceiver.java
+5
-1
IntervalTrigger.java
src/android/notification/trigger/IntervalTrigger.java
+1
-6
No files found.
src/android/notification/receiver/AbstractClearReceiver.java
View file @
978c5550
...
...
@@ -44,6 +44,10 @@ abstract public class AbstractClearReceiver extends BroadcastReceiver {
@Override
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
Bundle
bundle
=
intent
.
getExtras
();
if
(
bundle
==
null
)
return
;
int
toastId
=
bundle
.
getInt
(
Notification
.
EXTRA_ID
);
Notification
toast
=
Manager
.
getInstance
(
context
).
get
(
toastId
);
...
...
src/android/notification/receiver/AbstractClickReceiver.java
View file @
978c5550
...
...
@@ -52,6 +52,10 @@ abstract public class AbstractClickReceiver extends Activity {
Intent
intent
=
getIntent
();
Bundle
bundle
=
intent
.
getExtras
();
Context
context
=
getApplicationContext
();
if
(
bundle
==
null
)
return
;
int
toastId
=
bundle
.
getInt
(
Notification
.
EXTRA_ID
);
Notification
toast
=
Manager
.
getInstance
(
context
).
get
(
toastId
);
...
...
@@ -97,6 +101,9 @@ abstract public class AbstractClickReceiver extends Activity {
.
getPackageManager
()
.
getLaunchIntentForPackage
(
pkgName
);
if
(
intent
==
null
)
return
;
intent
.
addFlags
(
FLAG_ACTIVITY_REORDER_TO_FRONT
|
FLAG_ACTIVITY_SINGLE_TOP
);
...
...
src/android/notification/receiver/AbstractTriggerReceiver.java
View file @
978c5550
...
...
@@ -46,7 +46,11 @@ abstract public class AbstractTriggerReceiver extends BroadcastReceiver {
@Override
public
void
onReceive
(
Context
context
,
Intent
intent
)
{
Bundle
bundle
=
intent
.
getExtras
();
int
toastId
=
bundle
.
getInt
(
Notification
.
EXTRA_ID
);
if
(
bundle
==
null
)
return
;
int
toastId
=
bundle
.
getInt
(
Notification
.
EXTRA_ID
,
0
);
Options
options
=
Manager
.
getInstance
(
context
).
getOptions
(
toastId
);
if
(
options
==
null
)
...
...
src/android/notification/trigger/IntervalTrigger.java
View file @
978c5550
...
...
@@ -68,10 +68,8 @@ public class IntervalTrigger extends DateTrigger {
* Adds the amount of ticks to the calendar.
*
* @param cal The calendar to manipulate.
*
* @return The calendar instance.
*/
Calendar
addInterval
(
Calendar
cal
)
{
void
addInterval
(
Calendar
cal
)
{
switch
(
unit
)
{
case
SECOND:
cal
.
add
(
Calendar
.
SECOND
,
ticks
);
...
...
@@ -98,8 +96,6 @@ public class IntervalTrigger extends DateTrigger {
cal
.
add
(
Calendar
.
YEAR
,
ticks
);
break
;
}
return
cal
;
}
}
\ 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