Pārlūkot izejas kodu

Fix count on Android triggered only n-1 times

Sebastián Katzer 8 gadi atpakaļ
vecāks
revīzija
63aa4c00da
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/android/notification/Request.java

+ 1 - 1
src/android/notification/Request.java

@@ -103,7 +103,7 @@ public final class Request {
      * If there's one more trigger date to calculate.
      */
     private boolean hasNext() {
-        return triggerDate != null && getOccurrence() < count;
+        return triggerDate != null && getOccurrence() <= count;
     }
 
     /**