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
38503d9c
Commit
38503d9c
authored
Nov 26, 2017
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix playing sound again when calling update method
parent
169e3cfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletions
+14
-1
Builder.java
src/android/notification/Builder.java
+14
-1
No files found.
src/android/notification/Builder.java
View file @
38503d9c
...
...
@@ -39,6 +39,7 @@ import de.appplant.cordova.plugin.notification.action.Action;
import
static
android
.
app
.
PendingIntent
.
FLAG_CANCEL_CURRENT
;
import
static
android
.
app
.
PendingIntent
.
FLAG_UPDATE_CURRENT
;
import
static
de
.
appplant
.
cordova
.
plugin
.
notification
.
Notification
.
EXTRA_UPDATE
;
/**
* Builder class for local notifications. Build fully configured local
...
...
@@ -134,7 +135,6 @@ public final class Builder {
.
setAutoCancel
(
options
.
isAutoClear
())
.
setOngoing
(
options
.
isSticky
())
.
setColor
(
options
.
getColor
())
.
setSound
(
sound
)
.
setVisibility
(
options
.
getVisibility
())
.
setPriority
(
options
.
getPriority
())
.
setShowWhen
(
options
.
getShowWhen
())
...
...
@@ -143,6 +143,10 @@ public final class Builder {
.
setGroupSummary
(
options
.
getGroupSummary
())
.
setLights
(
options
.
getLedColor
(),
options
.
getLedOn
(),
options
.
getLedOff
());
if
(
sound
!=
Uri
.
EMPTY
&&
!
isUpdate
())
{
builder
.
setSound
(
sound
);
}
if
(
options
.
isWithProgressBar
())
{
builder
.
setProgress
(
options
.
getProgressMaxValue
(),
...
...
@@ -393,4 +397,13 @@ public final class Builder {
context
,
reqCode
,
intent
,
FLAG_CANCEL_CURRENT
);
}
/**
* If the builder shall build an notification or an updated version.
*
* @return true in case of an updated version.
*/
private
boolean
isUpdate
()
{
return
extras
!=
null
&&
extras
.
getBoolean
(
EXTRA_UPDATE
,
false
);
}
}
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