diff --git a/src/android/AndroidManifest.xml b/src/android/AndroidManifest.xml index c7255f74..30efd669 100644 --- a/src/android/AndroidManifest.xml +++ b/src/android/AndroidManifest.xml @@ -6,7 +6,9 @@ - + diff --git a/src/android/com/unprompted/tildefriends/MainActivity.java b/src/android/com/unprompted/tildefriends/MainActivity.java index ff0e3004..8cbdbc5d 100644 --- a/src/android/com/unprompted/tildefriends/MainActivity.java +++ b/src/android/com/unprompted/tildefriends/MainActivity.java @@ -182,6 +182,20 @@ public class MainActivity extends Activity { }); } + @Override + protected void onSaveInstanceState(Bundle outState) + { + super.onSaveInstanceState(outState); + web_view.saveState(outState); + } + + @Override + protected void onRestoreInstanceState(Bundle savedInstanceState) + { + super.onRestoreInstanceState(savedInstanceState); + web_view.restoreState(savedInstanceState); + } + @Override public boolean onKeyDown(int keyCode, KeyEvent event) { if (keyCode == KeyEvent.KEYCODE_BACK && web_view.canGoBack()) {