From 6b876158d5067ab9f1e3e3249e694f9c2cf253ea Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 22 Dec 2023 15:02:47 +0100 Subject: [PATCH] Improve scroll bar --- .../app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java | 4 ++-- .../main/res/layouts/mastodon/layout/fragment_pagination.xml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java index 795dc740..0de23c38 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/StatusAdapter.java @@ -1316,13 +1316,13 @@ public class StatusAdapter extends RecyclerView.Adapter } else { holder.binding.replyCount.setVisibility(View.GONE); } - if(statusToDeal.reblogs_count > 0 && !(context instanceof ContextActivity)) { + if(statusToDeal.reblogs_count > 0) { holder.binding.boostCount.setText(String.valueOf(statusToDeal.reblogs_count)); holder.binding.boostCount.setVisibility(View.VISIBLE); } else { holder.binding.boostCount.setVisibility(View.GONE); } - if(statusToDeal.favourites_count > 0 && !(context instanceof ContextActivity)) { + if(statusToDeal.favourites_count > 0) { holder.binding.favoriteCount.setText(String.valueOf(statusToDeal.favourites_count)); holder.binding.favoriteCount.setVisibility(View.VISIBLE); } else { diff --git a/app/src/main/res/layouts/mastodon/layout/fragment_pagination.xml b/app/src/main/res/layouts/mastodon/layout/fragment_pagination.xml index 3ec6f30b..eaef5356 100644 --- a/app/src/main/res/layouts/mastodon/layout/fragment_pagination.xml +++ b/app/src/main/res/layouts/mastodon/layout/fragment_pagination.xml @@ -38,6 +38,8 @@ android:layout_height="wrap_content" android:clipToPadding="false" android:paddingBottom="6dp" + android:fastScrollEnabled="true" + android:scrollbarSize="5dp" android:scrollbarThumbVertical="?colorPrimary" android:scrollbars="vertical" />