소스 검색

Set device as not ready onDestroy

Sebastián Katzer 10 년 전
부모
커밋
7a3278345d
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      src/android/LocalNotification.java

+ 9 - 0
src/android/LocalNotification.java

@@ -90,6 +90,15 @@ public class LocalNotification extends CordovaPlugin {
         isInBackground = false;
     }
 
+    /**
+     * The final call you receive before your activity is destroyed.
+     */
+    @Override
+    public void onDestroy() {
+        deviceready = false;
+        isInBackground = true;
+    }
+
     /**
      * Executes the request.
      *