diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index 406d74673..b8e7949f3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -474,6 +474,13 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr spoilerEdit.addTextChangedListener(new SimpleTextWatcher(e->updateCharCounter())); if(replyTo!=null){ replyText.setText(getString(R.string.in_reply_to, replyTo.account.displayName)); + replyText.setOnClickListener(v->{ + Bundle args=new Bundle(); + args.putString("account", accountID); + args.putParcelable("status", Parcels.wrap(replyTo)); + imm.hideSoftInputFromWindow(view.getWindowToken(), 0); + Nav.go(getActivity(), ThreadFragment.class, args); + }); ArrayList mentions=new ArrayList<>(); String ownID=AccountSessionManager.getInstance().getAccount(accountID).self.id; if(!replyTo.account.id.equals(ownID)) diff --git a/mastodon/src/main/res/layout/fragment_compose.xml b/mastodon/src/main/res/layout/fragment_compose.xml index 2db0dc335..9feb55c66 100644 --- a/mastodon/src/main/res/layout/fragment_compose.xml +++ b/mastodon/src/main/res/layout/fragment_compose.xml @@ -35,15 +35,17 @@ android:id="@+id/reply_text" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginLeft="16dp" - android:layout_marginRight="16dp" - android:layout_marginTop="16dp" + android:layout_marginBottom="-12dp" + android:paddingHorizontal="16dp" + android:paddingTop="16dp" + android:paddingBottom="6dp" android:textAppearance="@style/m3_title_small" android:drawableStart="@drawable/ic_fluent_arrow_reply_20_filled" android:drawableTint="?android:textColorSecondary" android:drawablePadding="6dp" android:singleLine="true" - android:ellipsize="end"/> + android:ellipsize="end" + android:background="?android:selectableItemBackground"/>