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 8e7563a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 All @@ -56,7 +56,7 @@
android:parentActivityName=".ui.activities.MainActivity"
android:label="@string/PS_settings_title"
tools:ignore="UnusedAttribute"
android:configChanges="screenSize | smallestScreenSize | screenLayout | orientation"
android:configChanges="screenSize | smallestScreenSize | screenLayout"
android:exported="true">
<intent-filter android:label="@string/app_name">
<action android:name="android.intent.action.VIEW" />
Expand Down

0 comments on commit 8e7563a

Please sign in to comment.