Improve scroll bar

This commit is contained in:
Thomas 2023-12-22 15:02:47 +01:00
parent 8b8e163151
commit 6b876158d5
2 changed files with 4 additions and 2 deletions

View File

@ -1316,13 +1316,13 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
} 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 {

View File

@ -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" />