Skip to content

Commit

Permalink
Adapt to orientation changes in MainActivity.
Browse files Browse the repository at this point in the history
MainActivity defines an alternate layout for screen more than 600dp wide, but was ignoring orientation changes.

This caused a bug where if the application was opened with a wide orientation, but then the orientation changed to a small one, the user would be presented with the wide layout compressed into an unusable screen.

fixes HabitRPG#2002
  • Loading branch information
EanLombardo committed Oct 1, 2024
1 parent 950395a commit 19bb690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Habitica/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
android:name=".ui.activities.MainActivity"
android:theme="@style/LaunchAppTheme"
android:windowSoftInputMode="stateHidden|adjustResize"
android:configChanges="screenSize | smallestScreenSize | screenLayout | orientation"
android:configChanges="screenSize | smallestScreenSize | screenLayout"
android:exported="true">
<nav-graph android:value="@navigation/navigation" />
<intent-filter>
Expand Down

0 comments on commit 19bb690

Please sign in to comment.