Skip to content

Commit 3503bfa

Browse files
authored
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
1 parent d281727 commit 3503bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/project/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
android:launchMode="singleTop"
4040
android:theme="@style/Theme.App.SplashScreen"
4141
android:windowSoftInputMode="adjustResize"
42-
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
42+
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode|navigation"
4343
android:exported="true">
4444
<intent-filter android:label="@string/launcher_name">
4545
<action android:name="android.intent.action.MAIN" />

0 commit comments

Comments
 (0)