diff options
| author | Tanuj <thetanuj@hotmail.com> | 2024-08-31 16:55:41 +0530 |
|---|---|---|
| committer | Tanuj <thetanuj@hotmail.com> | 2024-08-31 16:55:41 +0530 |
| commit | 87022579eeb448d8fb3fd760554e163c2cf09cbc (patch) | |
| tree | ec33efd287b99b0485e12bf4d54c8a7274673b5d /app/src/main/java | |
| parent | 03da448203a7521f527ed3e0852c7e2b5e4779e3 (diff) | |
| download | SidePhOnelauncher-87022579eeb448d8fb3fd760554e163c2cf09cbc.tar.gz SidePhOnelauncher-87022579eeb448d8fb3fd760554e163c2cf09cbc.tar.bz2 SidePhOnelauncher-87022579eeb448d8fb3fd760554e163c2cf09cbc.zip | |
Fixed: showing keyboard after closing app drawer
Diffstat (limited to 'app/src/main/java')
| -rw-r--r-- | app/src/main/java/app/olauncher/ui/AppDrawerFragment.kt | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/app/src/main/java/app/olauncher/ui/AppDrawerFragment.kt b/app/src/main/java/app/olauncher/ui/AppDrawerFragment.kt index 919c789..1986300 100644 --- a/app/src/main/java/app/olauncher/ui/AppDrawerFragment.kt +++ b/app/src/main/java/app/olauncher/ui/AppDrawerFragment.kt @@ -248,19 +248,16 @@ class AppDrawerFragment : Fragment() { RecyclerView.SCROLL_STATE_DRAGGING -> { onTop = !recyclerView.canScrollVertically(-1) - if (onTop) binding.search.hideKeyboard() - // if (onTop && !recyclerView.canScrollVertically(1)) - // checkMessageAndExit() + if (onTop) + binding.search.hideKeyboard() } RecyclerView.SCROLL_STATE_IDLE -> { - if (!recyclerView.canScrollVertically(1)) { + if (!recyclerView.canScrollVertically(1)) binding.search.hideKeyboard() - } else if (!recyclerView.canScrollVertically(-1)) { - if (!onTop) binding.search.showKeyboard(prefs.autoShowKeyboard) - // if (onTop) checkMessageAndExit() - // else binding.search.showKeyboard(prefs.autoShowKeyboard) - } + else if (!recyclerView.canScrollVertically(-1)) + if (!onTop && isRemoving.not()) + binding.search.showKeyboard(prefs.autoShowKeyboard) } } } |
