From 8d2fb9cfb132feaf40a06833de350ccc7c1f7cab Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 23 Aug 2021 10:10:47 +0200 Subject: [PATCH] Prevent showing keyboard after auto save --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentCompose.java b/app/src/main/java/eu/faircode/email/FragmentCompose.java index fcaeaa8a80..6f251faef3 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -5831,11 +5831,12 @@ public class FragmentCompose extends FragmentBase { showDraft(draft); } else if (action == R.id.action_save) { + boolean autosave = extras.getBoolean("autosave"); setFocus( args.getInt("focus"), args.getInt("start", -1), args.getInt("end", -1), - args.getBoolean("ime")); + args.getBoolean("ime") && !autosave); } else if (action == R.id.action_check) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());