mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-05 11:30:47 -05:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user