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.

This commit is contained in:
Pierrot 2019-05-01 09:50:31 +02:00
parent 782406cb58
commit b3e8e721f9
2 changed files with 2 additions and 1 deletions

View file

@ -237,6 +237,7 @@ public class Setup {
final PageConfig dashboard_config = dashboard.config; final PageConfig dashboard_config = dashboard.config;
dashboard_config.applyDefaultFolderConfig(); dashboard_config.applyDefaultFolderConfig();
dashboard_config.defaultFolderConfig.outsideTapClose = true;
dashboard_config.screenOrientation = PageConfig.ScreenOrientation.PORTRAIT; dashboard_config.screenOrientation = PageConfig.ScreenOrientation.PORTRAIT;
dashboard_config.gridPRowNum = 6; dashboard_config.gridPRowNum = 6;
dashboard_config.menuKey = new EventAction(GlobalConfig.USER_MENU, null); dashboard_config.menuKey = new EventAction(GlobalConfig.USER_MENU, null);
@ -413,6 +414,7 @@ public class Setup {
Resources resources = LLApp.get().getResources(); Resources resources = LLApp.get().getResources();
final PageConfig config = drawer.config; final PageConfig config = drawer.config;
config.applyDefaultFolderConfig(); config.applyDefaultFolderConfig();
config.defaultFolderConfig.outsideTapClose = true;
config.gridPRowNum = config.gridLRowNum = 4; config.gridPRowNum = config.gridLRowNum = 4;
config.scrollingDirection = PageConfig.ScrollingDirection.X; config.scrollingDirection = PageConfig.ScrollingDirection.X;
if(Build.VERSION.SDK_INT>=19) { if(Build.VERSION.SDK_INT>=19) {

View file

@ -320,7 +320,6 @@ public class FolderView extends FrameLayout {
if(mOnTapOutsideListener != null) { if(mOnTapOutsideListener != null) {
mOnTapOutsideListener.onTapOutside(this); mOnTapOutsideListener.onTapOutside(this);
} }
return true;
} }
return false; return false;
} }