Request focus / show keyboard after save draft

pull/197/head
M66B 3 years ago
parent 595fa5ad23
commit 78d5c2d363

@ -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());

Loading…
Cancel
Save