From e4375eb36fb457754980cf69f5d0f6daf6431eae Mon Sep 17 00:00:00 2001 From: alperozturk Date: Wed, 18 Dec 2024 16:34:22 +0100 Subject: [PATCH] shouldShowRecommendedFiles Signed-off-by: alperozturk --- .../owncloud/android/ui/adapter/OCFileListAdapter.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java b/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java index 60535bedde..6504472bd4 100644 --- a/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java +++ b/app/src/main/java/com/owncloud/android/ui/adapter/OCFileListAdapter.java @@ -439,9 +439,9 @@ public class OCFileListAdapter extends RecyclerView.Adapter ocFileListFragmentInterface.onHeaderClicked()); - ViewExtensionsKt.setVisibleIf(headerViewHolder.getBinding().recommendedFilesLayout, !recommendedFiles.isEmpty()); + ViewExtensionsKt.setVisibleIf(headerViewHolder.getBinding().recommendedFilesLayout, shouldShowRecommendedFiles()); - if (!recommendedFiles.isEmpty()) { + if (shouldShowRecommendedFiles()) { final var recommendedFilesRecyclerView = headerViewHolder.getBinding().recommendedFilesRecyclerView; final LinearLayoutManager layoutManager = new LinearLayoutManager(activity, LinearLayoutManager.HORIZONTAL, false); @@ -481,6 +481,10 @@ public class OCFileListAdapter extends RecyclerView.Adapter