소스 검색

Invoke background callback in own thread

Sebastián Katzer 12 년 전
부모
커밋
5b19603366
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/android/ReceiverActivity.java

+ 1 - 1
src/android/ReceiverActivity.java

@@ -70,7 +70,7 @@ public class ReceiverActivity extends Activity {
         // after reboot, LocalNotification.webView is always null
         // may be call background callback later
         if (function != null && LocalNotification.webView != null) {
-            LocalNotification.webView.sendJavascript(function + "(" + options.getId() + ")");
+            LocalNotification.webView.sendJavascript("setTimeout('" + function + "(" + options.getId() + ")',0)");
         }
     }
 }