瀏覽代碼

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

Sebastián Katzer 12 年之前
父節點
當前提交
dd0691b86c
共有 1 個文件被更改,包括 2 次插入7 次删除
  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) {}
     }