Forráskód Böngészése

Only restore not already triggered notifications on reboot

Sebastián Katzer 10 éve
szülő
commit
3b159c8855
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/android/RestoreReceiver.java

+ 3 - 1
src/android/RestoreReceiver.java

@@ -42,7 +42,9 @@ public class RestoreReceiver extends AbstractRestoreReceiver {
      */
     @Override
     public void onRestore (Notification notification) {
-        notification.schedule();
+        if (notification.isScheduled()) {
+            notification.schedule();
+        }
     }
 
     /**