From b3e8e721f93eceea158741cc329b59a0dc218a1b Mon Sep 17 00:00:00 2001 From: Pierrot Date: Wed, 1 May 2019 09:50:31 +0200 Subject: [PATCH] Tweaks for the folder tap outside option: let the event traverse all layers (and close all folders). Set this option to true in the default setup. --- .../main/java/net/pierrox/lightning_launcher/util/Setup.java | 2 ++ .../java/net/pierrox/lightning_launcher/views/FolderView.java | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/llx/app/src/main/java/net/pierrox/lightning_launcher/util/Setup.java b/app/llx/app/src/main/java/net/pierrox/lightning_launcher/util/Setup.java index 76f1b20..1cff567 100644 --- a/app/llx/app/src/main/java/net/pierrox/lightning_launcher/util/Setup.java +++ b/app/llx/app/src/main/java/net/pierrox/lightning_launcher/util/Setup.java @@ -237,6 +237,7 @@ public class Setup { final PageConfig dashboard_config = dashboard.config; dashboard_config.applyDefaultFolderConfig(); + dashboard_config.defaultFolderConfig.outsideTapClose = true; dashboard_config.screenOrientation = PageConfig.ScreenOrientation.PORTRAIT; dashboard_config.gridPRowNum = 6; dashboard_config.menuKey = new EventAction(GlobalConfig.USER_MENU, null); @@ -413,6 +414,7 @@ public class Setup { Resources resources = LLApp.get().getResources(); final PageConfig config = drawer.config; config.applyDefaultFolderConfig(); + config.defaultFolderConfig.outsideTapClose = true; config.gridPRowNum = config.gridLRowNum = 4; config.scrollingDirection = PageConfig.ScrollingDirection.X; if(Build.VERSION.SDK_INT>=19) { diff --git a/app/llx/core/src/main/java/net/pierrox/lightning_launcher/views/FolderView.java b/app/llx/core/src/main/java/net/pierrox/lightning_launcher/views/FolderView.java index 6192848..896c7db 100644 --- a/app/llx/core/src/main/java/net/pierrox/lightning_launcher/views/FolderView.java +++ b/app/llx/core/src/main/java/net/pierrox/lightning_launcher/views/FolderView.java @@ -320,7 +320,6 @@ public class FolderView extends FrameLayout { if(mOnTapOutsideListener != null) { mOnTapOutsideListener.onTapOutside(this); } - return true; } return false; }