mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-542 Editor | Fix | Make back button in slash objects menu react to action (#2687)
This commit is contained in:
parent
4f55f6dbec
commit
166f7f6f78
1 changed files with 6 additions and 1 deletions
|
@ -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<FrameLayout>(R.id.flBack).setOnClickListener {
|
||||
clicks(SlashItem.Back)
|
||||
}
|
||||
}
|
||||
else -> throw IllegalArgumentException("Wrong viewtype:$viewType")
|
||||
}.apply {
|
||||
itemView.setOnClickListener {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue