library: bound the detail scroll restore and cover grids

Gate the restore on the caller's content being ready instead of an item
count that can include only the header, clear it after clamping to the
available rows, and include offset-only positions. Apply the same saver
to the artist grid so a process-death restore does not open at the top.
This commit is contained in:
austinried
2026-10-21 10:13:52 +00:00
parent 2c6af4b126
commit 2da0d61d4c
7 changed files with 46 additions and 14 deletions
@@ -46,6 +46,7 @@ class HeroDetailScaffoldRestoreTest {
onBack = {},
header = { _, _ -> Box(Modifier.height(200.dp)) },
content = { rowModifier -> rowItems(rows, rowModifier) },
contentReady = rows > 0,
)
}
}