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
b223fde5
Commit
b223fde5
authored
Nov 13, 2014
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #232 from silvioq/master
Backward compatibility for Frodo (API level 8)
parents
5b6ea51b
3da5b1b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
3 deletions
+16
-3
LocalNotification.java
src/android/LocalNotification.java
+16
-3
No files found.
src/android/LocalNotification.java
View file @
b223fde5
...
...
@@ -42,6 +42,7 @@ import android.content.Context;
import
android.content.Intent
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences.Editor
;
import
android.os.Build
;
/**
* This plugin utilizes the Android AlarmManager in combination with StatusBar
...
...
@@ -329,7 +330,11 @@ public class LocalNotification extends CordovaPlugin {
if
(
alarmId
!=
null
)
{
editor
.
putString
(
alarmId
,
args
.
toString
());
editor
.
apply
();
if
(
Build
.
VERSION
.
SDK_INT
<
9
)
{
editor
.
commit
();
}
else
{
editor
.
apply
();
}
}
}
...
...
@@ -344,7 +349,11 @@ public class LocalNotification extends CordovaPlugin {
if
(
alarmId
!=
null
)
{
editor
.
remove
(
alarmId
);
editor
.
apply
();
if
(
Build
.
VERSION
.
SDK_INT
<
9
)
{
editor
.
commit
();
}
else
{
editor
.
apply
();
}
}
}
...
...
@@ -355,7 +364,11 @@ public class LocalNotification extends CordovaPlugin {
Editor
editor
=
getSharedPreferences
().
edit
();
editor
.
clear
();
editor
.
apply
();
if
(
Build
.
VERSION
.
SDK_INT
<
9
)
{
editor
.
commit
();
}
else
{
editor
.
apply
();
}
}
/**
...
...
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