1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-09 09:34:59 +09:00

Editor | Fix | Set-markup-url-or-link-to-object dialog should not block the editor when the bottom sheet is hidden by swipe (#2036)

This commit is contained in:
Evgenii Kozlov 2022-01-12 18:51:42 +03:00 committed by GitHub
parent 833510110b
commit 8b733ed30b
Signed by: github
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View file

@ -6,6 +6,10 @@
* Sets | Fix tag and status colors for night mode for lists (#2030)
### Fixes & tech 🚒
* Editor | When trying to set a link to an object or to a web page for a text selection, the dedicated screen should not block the editor when the bottom sheet is hidden by swiping down (#2036)
## Version 0.5.0
### New features & enhancements 🚀

View file

@ -58,6 +58,15 @@ class LinkToObjectOrWebPagesFragment() : BaseBottomSheetFragment() {
state = BottomSheetBehavior.STATE_EXPANDED
isHideable = true
skipCollapsed = true
addBottomSheetCallback(
object : BottomSheetBehavior.BottomSheetCallback() {
override fun onStateChanged(bottomSheet: View, newState: Int) {
if (newState == BottomSheetBehavior.STATE_HIDDEN) dismiss()
}
override fun onSlide(bottomSheet: View, slideOffset: Float) {}
}
)
}
with(filterInputField) {
setHint(R.string.paste_link_or_search)