Prevent crash

pull/212/head
M66B 2 years ago
parent 4d43d05587
commit 9411ca148e

@ -1282,7 +1282,7 @@ public class FragmentCompose extends FragmentBase {
protected Long onExecute(Context context, Bundle args) throws Throwable { protected Long onExecute(Context context, Bundle args) throws Throwable {
String email = args.getString("email"); String email = args.getString("email");
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext()); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean auto_identity = prefs.getBoolean("auto_identity", false); boolean auto_identity = prefs.getBoolean("auto_identity", false);
boolean suggest_sent = prefs.getBoolean("suggest_sent", true); boolean suggest_sent = prefs.getBoolean("suggest_sent", true);
boolean suggest_received = prefs.getBoolean("suggest_received", false); boolean suggest_received = prefs.getBoolean("suggest_received", false);

Loading…
Cancel
Save