Check for closeAppDrawer config before closing it

This commit is contained in:
Ensar Sarajčić 2023-07-26 18:23:56 +02:00
parent fd46c078fb
commit 5b318a4f59

View File

@ -120,7 +120,9 @@ class AllAppsFragment(context: Context, attributeSet: AttributeSet) : MyFragment
if (currAdapter == null) {
LaunchersAdapter(activity!!, launchers, this) {
activity?.launchApp((it as AppLauncher).packageName, it.activityName)
activity?.closeAppDrawer()
if (activity?.config?.closeAppDrawer == true) {
activity?.closeAppDrawer()
}
ignoreTouches = false
touchDownY = -1
}.apply {