Procházet zdrojové kódy

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

Sebastián Katzer před 12 roky
rodič
revize
dd0691b86c
1 změnil soubory, kde provedl 2 přidání a 7 odebrání
  1. 2 7
      src/android/ReceiverActivity.java

+ 2 - 7
src/android/ReceiverActivity.java

@@ -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();
-            }
+            launchMainIntent();
+            invokeBackgroundCallback(options);
         } catch (JSONException e) {}
     }