mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
Editor | Footer issue when duplicating last block in select mode (#1837)
This commit is contained in:
parent
debc1ca389
commit
028f3068ff
3 changed files with 7 additions and 7 deletions
|
@ -14,8 +14,9 @@
|
|||
|
||||
### Fixes & tech 🚒
|
||||
|
||||
* Editor | Better mime types recognition for file blocks (#1832, #1834)
|
||||
* Editor | Enhanced: Better mime types recognition for file blocks (#1832, #1834)
|
||||
* Editor | Fixed: should not show style panel along with keyboard when focusing a block, for which style panel was opened (#1830)
|
||||
* Editor | Fixed: should not add empty space below when duplicating the last block in multi-select mode (#1837)
|
||||
* Global search | Fixed: should close keyboard on exit (#1838)
|
||||
|
||||
## Version 0.3.1
|
||||
|
|
|
@ -1041,6 +1041,7 @@ open class EditorFragment : NavigationFragment(R.layout.fragment_editor),
|
|||
when (state) {
|
||||
is ViewState.Success -> {
|
||||
pageAdapter.updateWithDiffUtil(state.blocks)
|
||||
recycler.invalidateItemDecorations()
|
||||
resetDocumentTitle(state)
|
||||
}
|
||||
is ViewState.OpenLinkScreen -> {
|
||||
|
|
|
@ -14,12 +14,10 @@ open class MentionFooterItemDecorator(private val screen: Point) : RecyclerView.
|
|||
parent: RecyclerView,
|
||||
state: RecyclerView.State
|
||||
) {
|
||||
parent.adapter?.itemCount?.let { size ->
|
||||
when (parent.getChildAdapterPosition(view)) {
|
||||
size - 1 -> {
|
||||
outRect.bottom = screen.y / 2
|
||||
}
|
||||
}
|
||||
val adapter = parent.adapter ?: return
|
||||
val pos = parent.getChildAdapterPosition(view)
|
||||
if (pos == adapter.itemCount - 1) {
|
||||
outRect.bottom = screen.y / 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue