From 59ed4c53ffa036d3fd89d8c9d652c0c88fa3d95c Mon Sep 17 00:00:00 2001 From: Docile-Alligator Date: Thu, 17 Mar 2022 21:22:26 +0800 Subject: Prevent WebView from reloading the website after orientation change in WebViewActivity. --- app/src/main/AndroidManifest.xml | 3 ++- .../infinityforreddit/activities/WebViewActivity.java | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 71359562..05cd4a65 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -76,7 +76,8 @@ android:name=".activities.WebViewActivity" android:label="" android:parentActivityName=".activities.MainActivity" - android:theme="@style/AppTheme.NoActionBar" /> + android:theme="@style/AppTheme.NoActionBar" + android:configChanges="orientation|screenSize" />