Commit 7a327834 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Set device as not ready onDestroy

parent ef5cb49b
Loading
Loading
Loading
Loading
+9 −0
Changes for src/android/LocalNotification.java: 9 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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.
     *