commit cb72592f4b5840c3b95a5b58d8f2eaba7503c823
parent c60e1af3eb849e09ba7d2b7f3990eb35c917756b
Author: William Casarin <jb55@jb55.com>
Date: Thu, 7 Aug 2025 16:24:20 -0700
android: fix dark/light mode and folding screen crash
We have to tell android not to restart the activity when a dark/light
mode is switched or when the phone is folded/unfolded. Otherwise
it will crash.
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/notedeck_chrome/android/app/src/main/AndroidManifest.xml b/crates/notedeck_chrome/android/app/src/main/AndroidManifest.xml
@@ -8,7 +8,7 @@
android:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar">
<activity
android:name=".MainActivity"
- android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
+ android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|uiMode|fontScale|smallestScreenSize"
android:exported="true"
android:launchMode="singleTask"
>