From 53f8f41d88e5e4a507cdbb2e169d870ce7a31ab9 Mon Sep 17 00:00:00 2001 From: Y32Gcnte8z <62335203+Y32Gcnte8z@users.noreply.github.com> Date: Thu, 15 Sep 2022 22:34:59 +0800 Subject: [PATCH] remain visibility when editing --- .../org/joinmastodon/android/fragments/ComposeFragment.java | 4 ++++ 1 file changed, 4 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 288eb2d9..e301d765 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -365,6 +365,10 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr attachmentsView.addView(createMediaAttachmentView(att)); } } + + if(editingStatus!=null && editingStatus.visibility!=null) { + statusVisibility=editingStatus.visibility; + } updateVisibilityIcon(); autocompleteViewController=new ComposeAutocompleteViewController(getActivity(), accountID);