From dba8bd1862192460ef72210ea42d28fc884807ae Mon Sep 17 00:00:00 2001 From: sk Date: Sat, 12 Nov 2022 03:21:40 +0100 Subject: [PATCH] clean up, revert unnecessary changes --- .../AccountCardStatusDisplayItem.java | 5 -- .../main/res/layout/item_discover_account.xml | 47 +++++++++---------- mastodon/src/main/res/values/strings.xml | 2 +- 3 files changed, 24 insertions(+), 30 deletions(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AccountCardStatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AccountCardStatusDisplayItem.java index 1600777f1..f71fb8399 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AccountCardStatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/AccountCardStatusDisplayItem.java @@ -13,13 +13,10 @@ import android.widget.ProgressBar; import android.widget.TextView; import org.joinmastodon.android.R; -import org.joinmastodon.android.api.requests.follow_requests.AuthorizeFollowRequest; -import org.joinmastodon.android.api.requests.follow_requests.RejectFollowRequest; import org.joinmastodon.android.fragments.BaseStatusListFragment; import org.joinmastodon.android.model.Account; import org.joinmastodon.android.model.Notification; import org.joinmastodon.android.model.Relationship; -import org.joinmastodon.android.model.Status; import org.joinmastodon.android.ui.OutlineProviders; import org.joinmastodon.android.ui.text.HtmlParser; import org.joinmastodon.android.ui.utils.CustomEmojiHelper; @@ -28,8 +25,6 @@ import org.joinmastodon.android.ui.views.ProgressBarButton; import java.util.Collections; -import me.grishka.appkit.api.Callback; -import me.grishka.appkit.api.ErrorResponse; import me.grishka.appkit.imageloader.ImageLoaderViewHolder; import me.grishka.appkit.imageloader.requests.ImageLoaderRequest; import me.grishka.appkit.imageloader.requests.UrlImageLoaderRequest; diff --git a/mastodon/src/main/res/layout/item_discover_account.xml b/mastodon/src/main/res/layout/item_discover_account.xml index bc5e67a00..c8dfd8159 100644 --- a/mastodon/src/main/res/layout/item_discover_account.xml +++ b/mastodon/src/main/res/layout/item_discover_account.xml @@ -11,11 +11,11 @@ android:id="@+id/cover" android:layout_width="match_parent" android:layout_height="128dp" - android:layout_marginLeft="4dp" android:layout_marginTop="4dp" + android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:scaleType="centerCrop" - tools:src="#0f0" /> + tools:src="#0f0"/> - + android:layout_marginStart="12dp" + android:orientation="vertical" + android:gravity="center_horizontal"> + tools:text="123"/> + tools:text="following"/> - + android:layout_marginStart="12dp" + android:orientation="vertical" + android:gravity="center_horizontal"> + tools:text="123"/> + tools:text="following"/> + android:layout_weight="1"/> + android:paddingVertical="8dp" + android:visibility="gone"> + android:paddingVertical="8dp" + android:visibility="gone"> + android:clipToPadding="false"> + tools:text="@string/follow_back"/> + android:indeterminateTint="?colorButtonText" + android:visibility="gone"/> diff --git a/mastodon/src/main/res/values/strings.xml b/mastodon/src/main/res/values/strings.xml index 22bacf159..8023dfef2 100644 --- a/mastodon/src/main/res/values/strings.xml +++ b/mastodon/src/main/res/values/strings.xml @@ -389,4 +389,4 @@ I Agree Accept follow request Reject follow request - \ No newline at end of file +