Android-SmartWebView icon indicating copy to clipboard operation
Android-SmartWebView copied to clipboard

How to prevent default reload on rotation of the screen

Open oleg-schmidt opened this issue 4 years ago • 4 comments

When a user navigates inside the app and the WebView and rotates the screen from portrait to landscape and vice verse, the app reloads back to the root url.

How to prevent this refresh?

Many Thanks in advance!

oleg-schmidt avatar Jan 18 '21 21:01 oleg-schmidt

I have the same problem

gabrielbartelega avatar Aug 19 '21 15:08 gabrielbartelega

This one is an old bug, possible solved. Are you guys sure you're using the latest variant?

mgks avatar Sep 20 '21 07:09 mgks

Hello, I'm having this problem and I'm using the latest variant.

Thank you,

EddieBlueUplink avatar Mar 23 '22 16:03 EddieBlueUplink

I fixed this bug as follows:

Add this line: android:configChanges="orientation|screenSize"

to the <activity in your AndroidManifest.xml

I hope this is also the solution for others.

RedmarStienstra avatar Mar 06 '23 19:03 RedmarStienstra