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 c8a305f7c..8e39ef35d 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -38,6 +38,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; @@ -434,10 +435,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 diff --git a/mastodon/src/main/res/layout/fragment_profile.xml b/mastodon/src/main/res/layout/fragment_profile.xml index 0efb6be06..466453027 100644 --- a/mastodon/src/main/res/layout/fragment_profile.xml +++ b/mastodon/src/main/res/layout/fragment_profile.xml @@ -210,9 +210,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/name" - android:layout_marginStart="10dp" - android:layout_marginTop="0dp" - android:layout_marginBottom="-6dp" + android:layout_marginStart="16dp" android:layout_toStartOf="@id/profile_action_btn_wrap" >