Преглед на файлове

Bugfix: the repeat interval is defined through the js interface.

Sebastián Katzer преди 12 години
родител
ревизия
1b2e2f14b0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/android/LocalNotification.java

+ 1 - 1
src/android/LocalNotification.java

@@ -102,7 +102,7 @@ public class LocalNotification extends CordovaPlugin {
         PendingIntent sender = PendingIntent.getBroadcast(cordova.getActivity(), 0, intent, PendingIntent.FLAG_CANCEL_CURRENT);
 
         if (options.getInterval() > 0) {
-            am.setRepeating(AlarmManager.RTC_WAKEUP, triggerTime, AlarmManager.INTERVAL_DAY, sender);
+            am.setRepeating(AlarmManager.RTC_WAKEUP, triggerTime, options.getInterval(), sender);
         } else {
             am.set(AlarmManager.RTC_WAKEUP, triggerTime, sender);
         }