1
0
Fork 0
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:
Mikhail 2022-10-26 21:22:12 +03:00 committed by GitHub
parent 4f55f6dbec
commit 166f7f6f78
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {