소스 검색

Only restore not already triggered notifications on reboot

Sebastián Katzer 10 년 전
부모
커밋
3b159c8855
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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();
+        }
     }
 
     /**