From 96040e15fdcbe0dfaeefded396a67c2d680a992d 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 bad446c9a..d2262c9e2 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -371,6 +371,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);