From 352e3c0b521c044c5c7266905aa92121d289ff3d Mon Sep 17 00:00:00 2001 From: Pablo Date: Thu, 25 Apr 2024 10:34:14 +0200 Subject: [PATCH] [ANDROAPP-5869] Provide different keys for fixedStickyHeader Signed-off-by: Pablo --- .../composetable/ui/extensions/LazyListScopeExtensions.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compose-table/src/main/java/org/dhis2/composetable/ui/extensions/LazyListScopeExtensions.kt b/compose-table/src/main/java/org/dhis2/composetable/ui/extensions/LazyListScopeExtensions.kt index afd3c86e838..300d8710256 100644 --- a/compose-table/src/main/java/org/dhis2/composetable/ui/extensions/LazyListScopeExtensions.kt +++ b/compose-table/src/main/java/org/dhis2/composetable/ui/extensions/LazyListScopeExtensions.kt @@ -13,8 +13,8 @@ fun LazyListScope.fixedStickyHeader( content: @Composable LazyItemScope.() -> Unit, ) { if (fixHeader) { - stickyHeader(key, contentType = contentType, content = content) + stickyHeader("${key}_sticky", contentType = contentType, content = content) } else { - item(key, contentType = contentType, content = content) + item("${key}_non_sticky", contentType = contentType, content = content) } }