From 3503bfa31b10cc7d6948356d4c101c7b76109688 Mon Sep 17 00:00:00 2001 From: 5r1m <47805716+5r1m@users.noreply.github.com> Date: Mon, 24 Jun 2024 17:13:22 +0530 Subject: [PATCH] Update AndroidManifest.xml by extending android:configChanges with "navigation" as application is restarted when BT keyboard is connected in some devices (#1718) In some devices (especially pixel) connecting with BT keyboard is resulting in application being restarted. The existing "keyboard" seems to be not sufficient as in this case it was triggering "navigation" change. https://stackoverflow.com/questions/25735227/bluetooth-keyboard-will-cause-activity-destroy-and-recreate/27238892#27238892 --- templates/project/AndroidManifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/project/AndroidManifest.xml b/templates/project/AndroidManifest.xml index e7bc7a45..b522b140 100644 --- a/templates/project/AndroidManifest.xml +++ b/templates/project/AndroidManifest.xml @@ -39,7 +39,7 @@ android:launchMode="singleTop" android:theme="@style/Theme.App.SplashScreen" android:windowSoftInputMode="adjustResize" - android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" + android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation" android:exported="true">