From d8e619dfbcd60548aa396b5b2c60e76bc92c7d8d Mon Sep 17 00:00:00 2001 From: Konstantin Ivanov <54908981+konstantiniiv@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:27:09 +0100 Subject: [PATCH] DROID-1941 Templates | Fix | Remove plus button from drop down menu (#596) --- .../core_ui/widgets/TypeTemplatesWidget.kt | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/TypeTemplatesWidget.kt b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/TypeTemplatesWidget.kt index 46f0f97619..f5058b8cad 100644 --- a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/TypeTemplatesWidget.kt +++ b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/widgets/TypeTemplatesWidget.kt @@ -251,31 +251,6 @@ fun TypeTemplatesWidget( color = colorResource(R.color.text_primary) ) } - Box( - modifier = Modifier - .align(Alignment.CenterEnd) - .noRippleThrottledClickable { - val templates = - (currentState as? TypeTemplatesWidgetUI.Data)?.templates - val newTemplate = - templates?.firstOrNull { it is TemplateView.New } - if (newTemplate != null) { - action(TemplateClick(newTemplate)) - } - } - .alpha(if (currentState.isPossibleToChangeTemplate) 1f else 0f) - ) { - Image( - modifier = Modifier.padding( - start = 16.dp, - top = 12.dp, - bottom = 12.dp, - end = 16.dp - ), - painter = painterResource(id = R.drawable.ic_default_plus), - contentDescription = null - ) - } } val itemsScroll = rememberLazyListState() if ((currentState as? TypeTemplatesWidgetUI.Data)?.isPossibleToChangeType == true) {