From 245b91bebd970bbeeebd6b3d67688a7e57b5018d Mon Sep 17 00:00:00 2001 From: sk Date: Thu, 29 Dec 2022 18:14:00 +0100 Subject: [PATCH] don't finish compose fragment --- .../org/joinmastodon/android/fragments/ComposeFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9b9786718..5f81d22aa 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -870,7 +870,8 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class); imm.hideSoftInputFromWindow(draftsBtn.getWindowToken(), 0); Nav.go(getActivity(), ScheduledStatusListFragment.class, args); - if (!hasDraft()) Nav.finish(this); + // TODO: figure out a better way to handle the back stack +// if (!hasDraft()) content.postDelayed(()->Nav.finish(this), 200); }); getToolbar().addView(draftsBtn); getToolbar().setNavigationIcon(R.drawable.ic_fluent_dismiss_24_regular);