mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
Enable edge-to-edge window fitting in MainActivity before super.onCreate() and disable navigation bar contrast enforcement on API 29+. Declare adjustResize soft input mode in AndroidManifest.xml and remove deprecated runtime setSoftInputMode. Derive system bar appearance from the app's color mode instead of the system night mode by passing a custom detectDarkMode to enableEdgeToEdge. Re-apply it from MagiskTheme whenever the resolved theme changes, replacing the unkeyed SideEffect that only updated the icon colors and left the API < 29 and API 35+ scrims mismatched. Support full IME and system bar insets in MagiskDialog and InstallDialog using safeDrawing insets and decorFitsSystemWindows, and make the custom update channel and download path dialogs in SettingsScreen scrollable so their text fields stay reachable above the keyboard. Pass Scaffold innerPadding to contentPadding or post-scroll padding in HomeScreen, SettingsScreen, ModuleScreen, SuperuserScreen, and LogScreen so scrollable content draws behind transparent system bars edge-to-edge without clipping. Keep the start/end insets as regular padding so content stays clear of side navigation bars in landscape. Assisted-by: Gemini 4 Argon Assisted-by: Claude Opus 5.5