app: modernize navigation and predictive back

Refactor Navigator to wrap NavBackStack<NavKey> with Parcelable
listSaver and multi-key support, and remove dead @Serializable
annotations and imports from Routes.kt.

Implement hierarchical tab back navigation in MainScreen to animate
scroll to Tab.HOME before bubbling to root exit, only while Route.Main
is the current destination. Scope child pager pages in MainScreen and
LogScreen with
rememberNavigationEventDispatcherOwner(enabled = isCurrentPage) to
prevent inactive offscreen tabs from intercepting navigation events.

Add NavigationBackHandler and exit confirmation dialogs to FlashScreen
and ActionScreen during active execution, and guard TopAppBar back
navigation buttons while operations are in progress.

Add NavigationBackHandler and TopAppBar back interception to
DenyListScreen and SuperuserGrantScreen to collapse active search
queries before exiting the screen.

Assisted-by: Gemini 4 Argon
Assisted-by: Claude Opus 5.5
This commit is contained in:
topjohnwu
2026-10-24 13:01:45 -07:00
committed by John Wu
parent daa07e6d51
commit 1ae3cd9288
9 changed files with 181 additions and 52 deletions
+2
View File
@@ -237,4 +237,6 @@
<string name="install_unknown_denied">Allow \"Install unknown apps\" to enable this functionality</string>
<string name="app_not_found">No app found to handle this action</string>
<string name="reboot_apply_change">Reboot to apply changes</string>
<string name="running_exit_title">Execution in progress</string>
<string name="running_exit_msg">Are you sure you want to exit? The running operation may not complete.</string>
</resources>