Skip to content

Commit caeda7b

Browse files
authored
fix(android): improve default handling of orientation changes (#2224)
Like c3eb2b2, but on the activity that actually matters.
1 parent fffc1d7 commit caeda7b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,17 @@
2323
>
2424
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
2525

26-
<activity
27-
android:name="com.microsoft.reacttestapp.MainActivity"
28-
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
29-
android:windowSoftInputMode="adjustResize"
30-
android:exported="true"
31-
>
26+
<activity android:name="com.microsoft.reacttestapp.MainActivity" android:exported="true">
3227
<intent-filter>
3328
<action android:name="android.intent.action.MAIN" />
3429
<category android:name="android.intent.category.LAUNCHER" />
3530
</intent-filter>
3631
</activity>
3732

38-
<activity android:name="com.microsoft.reacttestapp.component.ComponentActivity" />
33+
<activity
34+
android:name="com.microsoft.reacttestapp.component.ComponentActivity"
35+
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
36+
android:windowSoftInputMode="adjustResize"
37+
/>
3938
</application>
4039
</manifest>

0 commit comments

Comments
 (0)