Prevent showing keyboard after auto save

This commit is contained in:
M66B 2021-08-23 10:10:47 +02:00
parent a69e4a090d
commit 8d2fb9cfb1
1 changed files with 2 additions and 1 deletions

View File

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