Request focus / show keyboard after save draft

This commit is contained in:
M66B 2021-04-17 08:30:35 +02:00
parent 595fa5ad23
commit 78d5c2d363
1 changed files with 4 additions and 1 deletions

View File

@ -5135,7 +5135,10 @@ public class FragmentCompose extends FragmentBase {
showDraft(draft);
} else if (action == R.id.action_save) {
// Do nothing
etBody.requestFocus();
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null)
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0);
} else if (action == R.id.action_check) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());