ソースを参照

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.
      *