From 852be8c608bd64b0ef08ed531d074a0eb129d984 Mon Sep 17 00:00:00 2001 From: Thomas Date: Tue, 27 Dec 2022 16:58:38 +0100 Subject: [PATCH] Fix issue #691 - Suggested accounts cannot be followed --- .../java/app/fedilab/android/ui/drawer/SuggestionAdapter.java | 1 - app/src/main/res/layout/drawer_suggestion.xml | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/ui/drawer/SuggestionAdapter.java b/app/src/main/java/app/fedilab/android/ui/drawer/SuggestionAdapter.java index 1637004c..58eb1712 100644 --- a/app/src/main/java/app/fedilab/android/ui/drawer/SuggestionAdapter.java +++ b/app/src/main/java/app/fedilab/android/ui/drawer/SuggestionAdapter.java @@ -109,7 +109,6 @@ public class SuggestionAdapter extends RecyclerView.Adapter(holder.binding.bio)), TextView.BufferType.SPANNABLE); - holder.binding.followAction.setEnabled(false); holder.binding.followAction.setOnClickListener(v -> { suggestionList.remove(position); notifyItemRemoved(position); diff --git a/app/src/main/res/layout/drawer_suggestion.xml b/app/src/main/res/layout/drawer_suggestion.xml index a8eba685..de4ccbad 100644 --- a/app/src/main/res/layout/drawer_suggestion.xml +++ b/app/src/main/res/layout/drawer_suggestion.xml @@ -106,7 +106,9 @@ android:layout_marginTop="6dp" android:insetTop="0dp" android:insetBottom="0dp" - android:padding="6dp" + android:padding="0dp" + app:iconGravity="textStart" + app:iconPadding="0dp" app:icon="@drawable/ic_baseline_person_add_24" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintTop_toBottomOf="@id/bio" />