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

Simply launch the main intent as first and the invoke the callback in each case.

parent b03bdf08
Loading
Loading
Loading
Loading
+0 −5
Changes for src/android/ReceiverActivity.java: 0 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -47,13 +47,8 @@ public class ReceiverActivity extends Activity {
            JSONObject args = new JSONObject(bundle.getString(Receiver.OPTIONS));
            Options options = new Options(getApplicationContext()).parse(args);

            if (LocalNotification.webView == null) {
            launchMainIntent();
            invokeBackgroundCallback(options);
            } else {
                invokeBackgroundCallback(options);
                launchMainIntent();
            }
        } catch (JSONException e) {}
    }