WebView — how to reload the page when you rotate the screen?

Given: application with one hosting Activity and many fragments. One of the fragments of the content loaded in the WebView. I would like to make sure that the page was not reloaded from the web each time the user rotates the device.

Stackoverflow provides an answer:
public class MyFragment extends Fragment {

...

@Override
 public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

...

 if (savedInstanceState == null) {
mWebView.loadUrl(URL);
 } else {
mWebView.restoreState(savedInstanceState);
}
}

@Override
 public void onSaveInstanceState(Bundle outState) {
mWebView.saveState(outState);
}
}

The problem is that restoreState exactly the same stupidly drawn page from the Internet (tested on 4.4.2 and 6.0.1).

Found the solution: www.devahead.com/blog/2012/01/preserving-the-state... It is to disable the automatic regeneration Activity and keep on top of the WebView itself. But this is absolutely not an option, since I have ~30 fragments and process manually each onConfigurationChanged... Hmm...

It doesn't work with fragments? Or is it meant to be?
July 8th 19 at 16:30
2 answers
July 8th 19 at 16:32
Inclined to believe that this is a problem mobile chromium (which is WebView)
like

on my kit kat (SGS3) had this problem just when switching tabs of your browser, and on CM11 on the same machine - it was not.
July 8th 19 at 16:34
The problem in re-creating activiti. It seems the game is not to solve without crutches

Find more questions by tags Android