pockethub / PocketHub

PocketHub Android App
Apache License 2.0
9.39k stars 3.46k forks source link

WebView state lost after device rotation #1220

Closed calbee633810 closed 5 years ago

calbee633810 commented 6 years ago

If the issues at hand is a BUG, please follow this template. Otherwise feel free to ignore it.

Description

When I open the app and click login, and navigate a several pages in WebView such as clicking Desktop version, click terms, or fill in forms and so on. Then I rotate my device, webview state should persist after orientation change, however, it refreshes and roll back the very beginning state. Users info and state lost after rotation.

screen shot 2018-04-12 at 2 23 01 pm Screenshot before rotation

screen shot 2018-04-12 at 2 23 12 pm Screenshot after rotation

It's annoying because user has to manually restore webview to its expected state.

Versions and device

What version of the app does this happen on?\ 0.4.0 Was the version downloaded from the Play Store?\ 0.4.0 on Google Play What version of Android does it happen on?\ Android 23 What model of phone does it happen on? Nexus 4 emulator

Steps to Reproduce

Mentioned in Description

Actual behaviour

WebView state should persist after rotation

Expected behaviour

WebView state lost

Logs