예제 #1
0
 public void setPostCreateMessage(Message postCreateMessage) {
   if (view != null) {
     sendPostCreateMessage(getWebView().getWebView(), postCreateMessage);
   } else {
     this.postCreateMessage = postCreateMessage;
   }
 }
예제 #2
0
  @Override
  public TiUIView createView(Activity activity) {
    ((TiBaseActivity) activity).addOnLifecycleEventListener(this);
    ((TiBaseActivity) activity).addInterceptOnBackPressedEventListener(this);
    TiUIWebView webView = new TiUIWebView(this);

    if (postCreateMessage != null) {
      sendPostCreateMessage(webView.getWebView(), postCreateMessage);
      postCreateMessage = null;
    }

    return webView;
  }