clean up, revert unnecessary changes

This commit is contained in:
sk 2022-11-12 03:21:40 +01:00
parent 12fdd70ad0
commit dba8bd1862
3 changed files with 24 additions and 30 deletions

View File

@ -13,13 +13,10 @@ import android.widget.ProgressBar;
import android.widget.TextView; import android.widget.TextView;
import org.joinmastodon.android.R; 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.fragments.BaseStatusListFragment;
import org.joinmastodon.android.model.Account; import org.joinmastodon.android.model.Account;
import org.joinmastodon.android.model.Notification; import org.joinmastodon.android.model.Notification;
import org.joinmastodon.android.model.Relationship; import org.joinmastodon.android.model.Relationship;
import org.joinmastodon.android.model.Status;
import org.joinmastodon.android.ui.OutlineProviders; import org.joinmastodon.android.ui.OutlineProviders;
import org.joinmastodon.android.ui.text.HtmlParser; import org.joinmastodon.android.ui.text.HtmlParser;
import org.joinmastodon.android.ui.utils.CustomEmojiHelper; import org.joinmastodon.android.ui.utils.CustomEmojiHelper;
@ -28,8 +25,6 @@ import org.joinmastodon.android.ui.views.ProgressBarButton;
import java.util.Collections; 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.ImageLoaderViewHolder;
import me.grishka.appkit.imageloader.requests.ImageLoaderRequest; import me.grishka.appkit.imageloader.requests.ImageLoaderRequest;
import me.grishka.appkit.imageloader.requests.UrlImageLoaderRequest; import me.grishka.appkit.imageloader.requests.UrlImageLoaderRequest;

View File

@ -11,11 +11,11 @@
android:id="@+id/cover" android:id="@+id/cover"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="128dp" android:layout_height="128dp"
android:layout_marginLeft="4dp"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_marginLeft="4dp"
android:layout_marginRight="4dp" android:layout_marginRight="4dp"
android:scaleType="centerCrop" android:scaleType="centerCrop"
tools:src="#0f0" /> tools:src="#0f0"/>
<View <View
android:id="@+id/avatar_border" android:id="@+id/avatar_border"
@ -112,54 +112,52 @@
android:id="@+id/followers_btn" android:id="@+id/followers_btn"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_marginStart="12dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:gravity="center_horizontal" android:layout_marginStart="12dp"
android:orientation="vertical"> android:orientation="vertical"
android:gravity="center_horizontal">
<TextView <TextView
android:id="@+id/followers_count" android:id="@+id/followers_count"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@style/m3_title_large" android:textAppearance="@style/m3_title_large"
tools:text="123" /> tools:text="123"/>
<TextView <TextView
android:id="@+id/followers_label" android:id="@+id/followers_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@style/m3_title_small" android:textAppearance="@style/m3_title_small"
tools:text="following" /> tools:text="following"/>
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:id="@+id/following_btn" android:id="@+id/following_btn"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="48dp" android:layout_height="48dp"
android:layout_marginStart="12dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:gravity="center_horizontal" android:layout_marginStart="12dp"
android:orientation="vertical"> android:orientation="vertical"
android:gravity="center_horizontal">
<TextView <TextView
android:id="@+id/following_count" android:id="@+id/following_count"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@style/m3_title_large" android:textAppearance="@style/m3_title_large"
tools:text="123" /> tools:text="123"/>
<TextView <TextView
android:id="@+id/following_label" android:id="@+id/following_label"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="@style/m3_title_small" android:textAppearance="@style/m3_title_small"
tools:text="following" /> tools:text="following"/>
</LinearLayout> </LinearLayout>
<Space <Space
android:layout_width="0px" android:layout_width="0px"
android:layout_height="1px" android:layout_height="1px"
android:layout_weight="1" /> android:layout_weight="1"/>
<FrameLayout <FrameLayout
android:id="@+id/reject_btn_wrap" android:id="@+id/reject_btn_wrap"
@ -168,7 +166,8 @@
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:clipToPadding="false" android:clipToPadding="false"
android:paddingHorizontal="4dp" android:paddingHorizontal="4dp"
android:paddingVertical="8dp"> android:paddingVertical="8dp"
android:visibility="gone">
<org.joinmastodon.android.ui.views.ProgressBarButton <org.joinmastodon.android.ui.views.ProgressBarButton
android:id="@+id/reject_btn" android:id="@+id/reject_btn"
@ -198,7 +197,8 @@
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:clipToPadding="false" android:clipToPadding="false"
android:paddingHorizontal="4dp" android:paddingHorizontal="4dp"
android:paddingVertical="8dp"> android:paddingVertical="8dp"
android:visibility="gone">
<org.joinmastodon.android.ui.views.ProgressBarButton <org.joinmastodon.android.ui.views.ProgressBarButton
android:id="@+id/accept_btn" android:id="@+id/accept_btn"
@ -225,28 +225,27 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:clipToPadding="false"
android:padding="8dp" android:padding="8dp"
android:visibility="gone"> android:clipToPadding="false">
<org.joinmastodon.android.ui.views.ProgressBarButton <org.joinmastodon.android.ui.views.ProgressBarButton
android:id="@+id/action_btn" android:id="@+id/action_btn"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:singleLine="true" android:singleLine="true"
tools:text="@string/follow_back" /> tools:text="@string/follow_back"/>
<ProgressBar <ProgressBar
android:id="@+id/action_progress" android:id="@+id/action_progress"
style="?android:progressBarStyleSmall"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:elevation="10dp"
android:indeterminate="true" android:indeterminate="true"
android:indeterminateTint="?colorButtonText" style="?android:progressBarStyleSmall"
android:elevation="10dp"
android:outlineProvider="none" android:outlineProvider="none"
android:visibility="gone" /> android:indeterminateTint="?colorButtonText"
android:visibility="gone"/>
</FrameLayout> </FrameLayout>
</LinearLayout> </LinearLayout>

View File

@ -389,4 +389,4 @@
<string name="i_agree">I Agree</string> <string name="i_agree">I Agree</string>
<string name="accept_follow_request">Accept follow request</string> <string name="accept_follow_request">Accept follow request</string>
<string name="reject_follow_request">Reject follow request</string> <string name="reject_follow_request">Reject follow request</string>
</resources> </resources>