Recreate activities on screenLayout change (#4689)

Fixes #4255 

Tested on Pixel 9 Pro Fold.

Before


https://github.com/user-attachments/assets/dd4d3a06-fb9f-4d89-94c3-401875cfe6f7

After


https://github.com/user-attachments/assets/dac01631-1add-48f4-9cb9-7365b3da2c9c
This commit is contained in:
Jichi Zhang 2024-09-28 07:49:38 +02:00 committed by GitHub
parent d00ad17603
commit c9355d9b00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -40,7 +40,6 @@
<activity android:name=".components.login.LoginWebViewActivity" /> <activity android:name=".components.login.LoginWebViewActivity" />
<activity <activity
android:name=".MainActivity" android:name=".MainActivity"
android:configChanges="orientation|screenSize|keyboardHidden|screenLayout|smallestScreenSize"
android:exported="true" android:exported="true"
android:theme="@style/SplashTheme"> android:theme="@style/SplashTheme">
@ -114,9 +113,7 @@
android:name=".ViewMediaActivity" android:name=".ViewMediaActivity"
android:theme="@style/TuskyBaseTheme" android:theme="@style/TuskyBaseTheme"
android:configChanges="orientation|screenSize|keyboardHidden|screenLayout|smallestScreenSize" /> android:configChanges="orientation|screenSize|keyboardHidden|screenLayout|smallestScreenSize" />
<activity <activity android:name=".components.account.AccountActivity" />
android:name=".components.account.AccountActivity"
android:configChanges="orientation|screenSize|keyboardHidden|screenLayout|smallestScreenSize" />
<activity android:name=".EditProfileActivity" /> <activity android:name=".EditProfileActivity" />
<activity android:name=".components.preference.PreferencesActivity" /> <activity android:name=".components.preference.PreferencesActivity" />
<activity android:name=".StatusListActivity" /> <activity android:name=".StatusListActivity" />