From 9411ca148eb7592ffe9bea646e317f39e81b7981 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 12 Apr 2023 07:23:12 +0200 Subject: [PATCH] Prevent crash --- app/src/main/java/eu/faircode/email/FragmentCompose.java | 2 +- 1 file changed, 1 insertion(+), 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 d641376d26..63cb7c59a7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentCompose.java +++ b/app/src/main/java/eu/faircode/email/FragmentCompose.java @@ -1282,7 +1282,7 @@ public class FragmentCompose extends FragmentBase { protected Long onExecute(Context context, Bundle args) throws Throwable { String email = args.getString("email"); - SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); + SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); boolean auto_identity = prefs.getBoolean("auto_identity", false); boolean suggest_sent = prefs.getBoolean("suggest_sent", true); boolean suggest_received = prefs.getBoolean("suggest_received", false);