don't finish compose fragment
This commit is contained in:
parent
2e47147367
commit
245b91bebd
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue