From 5769b378e21bb01eaf41e06a797265a34b48b23c Mon Sep 17 00:00:00 2001 From: sk Date: Mon, 21 Nov 2022 20:12:04 +0100 Subject: [PATCH] set 16dp lock on baseline --- .../org/joinmastodon/android/fragments/ProfileFragment.java | 5 +++-- mastodon/src/main/res/drawable/ic_lock.xml | 6 ++++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 mastodon/src/main/res/drawable/ic_lock.xml diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index 5040c2f8b..c98456060 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -31,6 +31,7 @@ import android.widget.Button; import android.widget.EditText; import android.widget.FrameLayout; import android.widget.ImageView; +import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.RelativeLayout; import android.widget.TextView; @@ -426,10 +427,10 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList ssb.append(AccountSessionManager.getInstance().getAccount(accountID).domain); } ssb.append(" "); - Drawable lock=username.getResources().getDrawable(R.drawable.ic_fluent_lock_closed_20_filled, getActivity().getTheme()).mutate(); + Drawable lock=username.getResources().getDrawable(R.drawable.ic_lock, getActivity().getTheme()).mutate(); lock.setBounds(0, 0, lock.getIntrinsicWidth(), lock.getIntrinsicHeight()); lock.setTint(username.getCurrentTextColor()); - ssb.append(getString(R.string.manually_approves_followers), new ImageSpan(lock, ImageSpan.ALIGN_BOTTOM), 0); + ssb.append(getString(R.string.manually_approves_followers), new ImageSpan(lock, ImageSpan.ALIGN_BASELINE), 0); username.setText(ssb); }else{ // noinspection SetTextI18n diff --git a/mastodon/src/main/res/drawable/ic_lock.xml b/mastodon/src/main/res/drawable/ic_lock.xml new file mode 100644 index 000000000..5bd09e680 --- /dev/null +++ b/mastodon/src/main/res/drawable/ic_lock.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file