Swipe down on the app drawer do not dismiss it ? #789
-
Is it a "normal" behaviour ? Version 1.10.6 play store (but same behaviour with last github version. |
Beta Was this translation helpful? Give feedback.
Answered by
CreativeCodeCat
Jun 10, 2025
Replies: 2 comments 1 reply
-
ill have a look into it :) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Oh sorry I removed a bit of code when I added the A-Z scroll bar ill add it back soon... override fun onScrollStateChanged(recyclerView: RecyclerView, newState: Int) {
super.onScrollStateChanged(recyclerView, newState)
when (newState) {
RecyclerView.SCROLL_STATE_DRAGGING -> {
onTop = !recyclerView.canScrollVertically(-1)
if (onTop) {
if (requireContext().hasSoftKeyboard()) {
binding.search.hideKeyboard()
}
}
if (onTop && !recyclerView.canScrollVertically(1)) {
findNavController().popBackStack()
}
}
RecyclerView.SCROLL_STATE_IDLE -> {
if (!recyclerView.canScrollVertically(1)) {
binding.search.hideKeyboard()
} else if (!recyclerView.canScrollVertically(-1)) {
if (onTop) {
findNavController().popBackStack()
} else {
if (requireContext().hasSoftKeyboard()) {
binding.search.showKeyboard()
}
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
CreativeCodeCat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh sorry I removed a bit of code when I added the A-Z scroll bar ill add it back soon...