Loading src/android/LocalNotification.java +13 −0 Changes for src/android/LocalNotification.java: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -329,9 +330,13 @@ public class LocalNotification extends CordovaPlugin { if (alarmId != null) { editor.putString(alarmId, args.toString()); if (Build.VERSION.SDK_INT<9) { editor.commit(); } else { editor.apply(); } } } /** * Remove a specific alarm from the Android shared Preferences. Loading @@ -344,9 +349,13 @@ public class LocalNotification extends CordovaPlugin { if (alarmId != null) { editor.remove(alarmId); if (Build.VERSION.SDK_INT<9) { editor.commit(); } else { editor.apply(); } } } /** * Clear all alarms from the Android shared Preferences. Loading @@ -355,8 +364,12 @@ public class LocalNotification extends CordovaPlugin { Editor editor = getSharedPreferences().edit(); editor.clear(); if (Build.VERSION.SDK_INT<9) { editor.commit(); } else { editor.apply(); } } /** * Fires the given event. Loading Loading
src/android/LocalNotification.java +13 −0 Changes for src/android/LocalNotification.java: 13 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -329,9 +330,13 @@ public class LocalNotification extends CordovaPlugin { if (alarmId != null) { editor.putString(alarmId, args.toString()); if (Build.VERSION.SDK_INT<9) { editor.commit(); } else { editor.apply(); } } } /** * Remove a specific alarm from the Android shared Preferences. Loading @@ -344,9 +349,13 @@ public class LocalNotification extends CordovaPlugin { if (alarmId != null) { editor.remove(alarmId); if (Build.VERSION.SDK_INT<9) { editor.commit(); } else { editor.apply(); } } } /** * Clear all alarms from the Android shared Preferences. Loading @@ -355,8 +364,12 @@ public class LocalNotification extends CordovaPlugin { Editor editor = getSharedPreferences().edit(); editor.clear(); if (Build.VERSION.SDK_INT<9) { editor.commit(); } else { editor.apply(); } } /** * Fires the given event. Loading