mirror of
https://github.com/SimpleMobileTools/Simple-Launcher.git
synced 2025-06-05 21:59:15 +02:00
Instantly hide app drawer without animation when using closeAppDrawer method
This commit is contained in:
parent
2534131851
commit
fd46c078fb
@ -485,7 +485,9 @@ class MainActivity : SimpleActivity(), FlingListener {
|
|||||||
|
|
||||||
fun closeAppDrawer() {
|
fun closeAppDrawer() {
|
||||||
if (isAllAppsFragmentExpanded()) {
|
if (isAllAppsFragmentExpanded()) {
|
||||||
hideFragment(all_apps_fragment)
|
all_apps_fragment.y = mScreenHeight.toFloat()
|
||||||
|
all_apps_fragment.all_apps_grid.scrollToPosition(0)
|
||||||
|
home_screen_grid.fragmentCollapsed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user