From dd3233e6155f5570ce419c5323c97b3bd3fde325 Mon Sep 17 00:00:00 2001 From: Grishka Date: Thu, 7 Apr 2022 16:16:26 +0300 Subject: [PATCH] Add CW to replies to own posts with CW --- .../org/joinmastodon/android/fragments/ComposeFragment.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 04cd976e..5b8fe89c 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -446,6 +446,12 @@ public class ComposeFragment extends ToolbarFragment implements OnBackPressedLis if(savedInstanceState==null){ mainEditText.setText(initialText); mainEditText.setSelection(mainEditText.length()); + if(!TextUtils.isEmpty(replyTo.spoilerText) && AccountSessionManager.getInstance().isSelf(accountID, replyTo.account)){ + hasSpoiler=true; + spoilerEdit.setVisibility(View.VISIBLE); + spoilerEdit.setText(replyTo.spoilerText); + spoilerBtn.setSelected(true); + } } }else{ replyText.setVisibility(View.GONE);