Prevent showing keyboard after auto save

pull/204/head
M66B 3 years ago
parent a69e4a090d
commit 8d2fb9cfb1

@ -5831,11 +5831,12 @@ public class FragmentCompose extends FragmentBase {
showDraft(draft); showDraft(draft);
} else if (action == R.id.action_save) { } else if (action == R.id.action_save) {
boolean autosave = extras.getBoolean("autosave");
setFocus( setFocus(
args.getInt("focus"), args.getInt("focus"),
args.getInt("start", -1), args.getInt("start", -1),
args.getInt("end", -1), args.getInt("end", -1),
args.getBoolean("ime")); args.getBoolean("ime") && !autosave);
} else if (action == R.id.action_check) { } else if (action == R.id.action_check) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());

Loading…
Cancel
Save