don't finish compose fragment

This commit is contained in:
sk 2022-12-29 18:14:00 +01:00 committed by LucasGGamerM
parent 2e47147367
commit 245b91bebd
1 changed files with 2 additions and 1 deletions

View File

@ -870,7 +870,8 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class); InputMethodManager imm=getActivity().getSystemService(InputMethodManager.class);
imm.hideSoftInputFromWindow(draftsBtn.getWindowToken(), 0); imm.hideSoftInputFromWindow(draftsBtn.getWindowToken(), 0);
Nav.go(getActivity(), ScheduledStatusListFragment.class, args); 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().addView(draftsBtn);
getToolbar().setNavigationIcon(R.drawable.ic_fluent_dismiss_24_regular); getToolbar().setNavigationIcon(R.drawable.ic_fluent_dismiss_24_regular);