Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/src/main/res/layout/main_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
android:saveEnabled="false"
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix correctly disables automatic state restoration for the NavigationView, which prevents conflicts with the app's manual state management in MainActivity.onCreate(). However, there is no automated test coverage for this navigation state restoration behavior after activity recreation. Consider adding an instrumentation test that verifies the navigation drawer highlights the correct menu item after the activity is recreated due to a configuration change like language or theme change.

Copilot uses AI. Check for mistakes.
app:headerLayout="@layout/main_navigation"
app:itemIconTint="@drawable/menu_selector"
app:itemTextColor="@drawable/menu_selector"
app:menu="@menu/nav_drawer_menu" />

</androidx.drawerlayout.widget.DrawerLayout>
</androidx.drawerlayout.widget.DrawerLayout>
Loading