예제 #1
0
  @Override
  public void onSaveInstanceState(Bundle outState) {
    // save current instance state
    super.onSaveInstanceState(outState);
    setUserVisibleHint(true);

    // save webview state
    WebView webView = (WebView) mRootView.findViewById(R.id.fragment_main_webview);
    webView.saveState(outState);
  }
 @Override
 public void onSaveInstanceState(Bundle outState) {
   // save current instance state
   super.onSaveInstanceState(outState);
   setUserVisibleHint(true);
 }