FightingForDevelop commented on issue #3113:
URL: https://github.com/apache/incubator-weex/issues/3113#issuecomment-647877082


   
   ` @Override
       public void onCreate(@Nullable Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           if (mWXSDKInstance != null) {
               mWXSDKInstance.onActivityCreate();
           }
       }
   
   public View onCreateView(LayoutInflater inflater, ViewGroup container, 
Bundle savedInstanceState) {
   loadJsBundle();
   }
   public void loadJsBundle() {
   activityContext = getActivityContext();
               showLoading();
               if (mWXSDKInstance != null) {
                   mWXSDKInstance.registerRenderListener(null);
                   mWXSDKInstance.destroy();
                   mWXSDKInstance = null;
               }
               mWXSDKInstance = new WXSDKInstance(activityContext);
               mWXSDKInstance.registerRenderListener(this);
   }`
   现在是这样处理的,我在IWXRenderListener的onException检测到异常会再次调用loadJsBundle()知道页面展示出来


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to