From 83a16b16c9afa0fe0328ab818470d4fce098876b Mon Sep 17 00:00:00 2001 From: Kacper Wiszczuk Date: Thu, 12 Sep 2019 05:08:41 -0700 Subject: [PATCH] fix: prevent activity recreation on theme change (#26413) Summary: On Android 10 whole activity is recreated when the user changes system theme. We should prevent it by adding `uiMode` in `android:configChanges` key in the default template. ## Changelog [Android] [Fixed] - Android 10: Prevent activity recreation on theme change Pull Request resolved: https://github.com/facebook/react-native/pull/26413 Test Plan: NOOP Differential Revision: D17342811 Pulled By: cpojer fbshipit-source-id: 2bed9b5f91e1b67451fefe34b02a1129d6c80d15 --- template/android/app/src/main/AndroidManifest.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/android/app/src/main/AndroidManifest.xml b/template/android/app/src/main/AndroidManifest.xml index 7bfb4481abbcf1..362d33beb785c9 100644 --- a/template/android/app/src/main/AndroidManifest.xml +++ b/template/android/app/src/main/AndroidManifest.xml @@ -13,7 +13,7 @@