diff --git a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/features/editor/slash/SlashObjectTypesAdapter.kt b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/features/editor/slash/SlashObjectTypesAdapter.kt index 0e30cb4349..e2114bb9ce 100644 --- a/core-ui/src/main/java/com/anytypeio/anytype/core_ui/features/editor/slash/SlashObjectTypesAdapter.kt +++ b/core-ui/src/main/java/com/anytypeio/anytype/core_ui/features/editor/slash/SlashObjectTypesAdapter.kt @@ -2,6 +2,7 @@ package com.anytypeio.anytype.core_ui.features.editor.slash import android.view.LayoutInflater import android.view.ViewGroup +import android.widget.FrameLayout import androidx.recyclerview.widget.RecyclerView import com.anytypeio.anytype.core_ui.R import com.anytypeio.anytype.core_ui.databinding.ItemListObjectSmallBinding @@ -51,7 +52,11 @@ class SlashObjectTypesAdapter( binding = ItemSlashWidgetSubheaderBinding.inflate( inflater, parent, false ) - ) + ).apply { + itemView.findViewById(R.id.flBack).setOnClickListener { + clicks(SlashItem.Back) + } + } else -> throw IllegalArgumentException("Wrong viewtype:$viewType") }.apply { itemView.setOnClickListener {