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

DROID-520 Editor | Fix | Show widget menu on every slash typed (#2703)

This commit is contained in:
Mikhail 2022-11-14 11:40:26 +03:00 committed by GitHub
parent 29347ffb4a
commit 2dafc36f9b
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,6 @@ import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.observe
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.LinearLayoutManager
@ -1517,6 +1516,7 @@ open class EditorFragment : NavigationFragment<FragmentEditorBinding>(R.layout.f
}
state.slashWidget.apply {
TransitionManager.endTransitions(binding.sheet)
if (isVisible) {
if (!binding.slashWidget.isVisible) {
binding.slashWidget.scrollToTop()