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:
parent
833510110b
commit
8b733ed30b
2 changed files with 13 additions and 0 deletions
|
@ -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 🚀
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue