From ad64fdf4c5f388ff0a1e156c452823bc1f8c0fa0 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Thu, 17 Sep 2026 13:07:02 +0300 Subject: [PATCH] feat: update GroupsNameText.kt to the new API --- .../feature/schedule/components/GroupsNameText.kt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/ru/sweetbread/unn/feature/schedule/components/GroupsNameText.kt b/app/src/main/java/ru/sweetbread/unn/feature/schedule/components/GroupsNameText.kt index 3fe8dde..e7fe6a9 100644 --- a/app/src/main/java/ru/sweetbread/unn/feature/schedule/components/GroupsNameText.kt +++ b/app/src/main/java/ru/sweetbread/unn/feature/schedule/components/GroupsNameText.kt @@ -27,7 +27,16 @@ fun GroupsNameText( ) { val suffix = if (text.endsWith("-В-OUP")) "-В-OUP" else null val mainPart = if (suffix != null) text.dropLast(6) else text - val blocks = mainPart.split('|') + val blocks = if (mainPart.startsWith("Поток_(") && mainPart.endsWith(')')) { + mainPart + .removePrefix("Поток_(") + .dropLast(1) + .split(';') + .map(String::trim) + .filter(String::isNotEmpty) + } else { + mainPart.split('|') + } FlowRow( modifier = modifier, @@ -47,4 +56,4 @@ fun GroupsNameText( suffix?.let { Text(text = it) } } -} \ No newline at end of file +}