fix(nav): apply the scaffold insets at one layer, and trust the coroutines boms

contentModifier already carried the Scaffold's system-bar padding and was
passed to both NavDisplay and the onboarding entry, so onboarding padded
itself twice while ChatScreen, which applies its own status, navigation and
IME insets, gained an extra outer band. Only onboarding takes the scaffold
padding now, matching what the when branch did before this PR, where
ChatScreen was called with no modifier at all.

The verification metadata refresh also adds three kotlinx-coroutines-bom
poms. They resolve through detached configurations that KSP introduces, and
a warm local cache never re-fetches them, so they failed only on a cold CI
runner. Regenerated with --refresh-dependencies so the whole set was
observed at once rather than one CI cycle at a time.

Three components added, none removed, no version drift.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MdKgoKZbL5K1wsn1WsES26
This commit is contained in:
Moe Hamade 2026-08-26 01:23:25 +03:00
parent c56dfa826c
commit c0a8a3c6df
2 changed files with 20 additions and 3 deletions

View File

@ -171,7 +171,9 @@ class MainActivity : OrientationAwareActivity() {
modifier = Modifier.fillMaxSize(),
containerColor = MaterialTheme.colorScheme.background
) { innerPadding ->
val contentModifier = Modifier
// Only onboarding takes the scaffold insets; ChatScreen applies
// its own status, navigation and IME padding.
val onboardingModifier = Modifier
.fillMaxSize()
.padding(innerPadding)
val onboardingState by mainViewModel.onboardingState.collectAsState()
@ -188,7 +190,7 @@ class MainActivity : OrientationAwareActivity() {
}
val entries: EntryProviderInstaller = {
entry<OnboardingRoute> { OnboardingFlowScreen(contentModifier) }
entry<OnboardingRoute> { OnboardingFlowScreen(onboardingModifier) }
entry<ChatRoute> { ChatScreen(viewModel = chatViewModel) }
}
@ -196,7 +198,7 @@ class MainActivity : OrientationAwareActivity() {
navigator = navigator,
entryInstallers = setOf(entries),
onExit = { finish() },
modifier = contentModifier,
modifier = Modifier.fillMaxSize(),
)
// Chat still drives its overlays with booleans rather than routes,

View File

@ -5092,11 +5092,21 @@
<sha256 value="7b7d1dddf188817deaad738e92e11faa5abdf937c87120cdf036102566ad4be3" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-coroutines-bom" version="1.10.2">
<artifact name="kotlinx-coroutines-bom-1.10.2.pom">
<sha256 value="faf0c6538e53ddc0499a63664d8e763c216580b2e18e722ccbdf1b431a6afe26" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-coroutines-bom" version="1.11.0">
<artifact name="kotlinx-coroutines-bom-1.11.0.pom">
<sha256 value="f65860bce58a2bfadf05fdc516d38333421f0e387fef87e24449c0394c80d254" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-coroutines-bom" version="1.6.4">
<artifact name="kotlinx-coroutines-bom-1.6.4.pom">
<sha256 value="ab2614855fba66aa8a42514dbe3d5a884315ffe1ed63f5932e710a8006245ce1" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-coroutines-bom" version="1.7.3">
<artifact name="kotlinx-coroutines-bom-1.7.3.pom">
<sha256 value="4e5d1900e6379ef3f5970d04a8f30529adc82f859e8cc107c21ce8149ef666c4" origin="Generated by Gradle"/>
@ -5107,6 +5117,11 @@
<sha256 value="1239e9dbe1397cd5971342956b2511bc3ace7b641842e4372a088dcfa8b9ad55" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-coroutines-bom" version="1.8.1">
<artifact name="kotlinx-coroutines-bom-1.8.1.pom">
<sha256 value="563e4aa29fa8fe09a6e1746d0a5b51308f7c7dedc468dc5a0ca810a485877030" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-coroutines-bom" version="1.9.0">
<artifact name="kotlinx-coroutines-bom-1.9.0.pom">
<sha256 value="bea5511e9001f2c593ab5080df131b219ab5e2085cc5979ce583eacd4946fd78" origin="Generated by Gradle"/>