diff --git a/app/src/main/java/com/orange/ods/app/ui/components/banners/ComponentBanners.kt b/app/src/main/java/com/orange/ods/app/ui/components/banners/ComponentBanners.kt index e0a2454ac..4606f0723 100644 --- a/app/src/main/java/com/orange/ods/app/ui/components/banners/ComponentBanners.kt +++ b/app/src/main/java/com/orange/ods/app/ui/components/banners/ComponentBanners.kt @@ -43,7 +43,7 @@ import com.orange.ods.compose.component.banner.OdsBannerButton import com.orange.ods.compose.component.banner.OdsBannerImage import com.orange.ods.compose.component.list.OdsListItem import com.orange.ods.compose.component.list.OdsSwitchTrailing -import com.orange.ods.utilities.extension.ifNotNull +import com.orange.ods.compose.utilities.extension.ifNotNull @OptIn(ExperimentalMaterialApi::class) @Composable diff --git a/app/src/main/java/com/orange/ods/app/ui/components/buttons/ButtonsTextToggleGroup.kt b/app/src/main/java/com/orange/ods/app/ui/components/buttons/ButtonsTextToggleGroup.kt index 1edf8ea2b..86d7fe558 100644 --- a/app/src/main/java/com/orange/ods/app/ui/components/buttons/ButtonsTextToggleGroup.kt +++ b/app/src/main/java/com/orange/ods/app/ui/components/buttons/ButtonsTextToggleGroup.kt @@ -37,7 +37,7 @@ import com.orange.ods.compose.theme.OdsDisplaySurface @Composable fun ButtonsTextToggleButtonsRow(customizationState: ButtonCustomizationState) { val textToggleButtons = - LocalRecipes.current.first().ingredients.distinctBy { it.food }.take(ButtonCustomizationState.MaxToggleCount).map { ingredient -> + LocalRecipes.current.first().ingredients.take(ButtonCustomizationState.MaxToggleCount).map { ingredient -> OdsTextToggleButtonsRowItem(ingredient.food.name, customizationState.isEnabled) } diff --git a/lib-xml/src/main/java/com/orange/ods/xml/component/banner/OdsBanner.kt b/lib-xml/src/main/java/com/orange/ods/xml/component/banner/OdsBanner.kt index af76addb5..e19e46fba 100644 --- a/lib-xml/src/main/java/com/orange/ods/xml/component/banner/OdsBanner.kt +++ b/lib-xml/src/main/java/com/orange/ods/xml/component/banner/OdsBanner.kt @@ -23,7 +23,7 @@ import com.google.accompanist.drawablepainter.rememberDrawablePainter import com.orange.ods.compose.component.banner.OdsBanner import com.orange.ods.compose.component.banner.OdsBannerButton import com.orange.ods.compose.component.banner.OdsBannerImage -import com.orange.ods.utilities.extension.ifNotNull +import com.orange.ods.compose.utilities.extension.ifNotNull import com.orange.ods.xml.R import com.orange.ods.xml.component.OdsAbstractComposeView import com.orange.ods.xml.utilities.extension.getResourceIdOrNull