mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-03 15:46:34 +02:00
Added option for auto identity
This commit is contained in:
@@ -1293,10 +1293,14 @@ public class FragmentCompose extends FragmentBase {
|
||||
protected Long onExecute(Context context, Bundle args) throws Throwable {
|
||||
String email = args.getString("email");
|
||||
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
boolean auto_identity = prefs.getBoolean("auto_identity", true);
|
||||
boolean suggest_sent = prefs.getBoolean("suggest_sent", true);
|
||||
boolean suggest_received = prefs.getBoolean("suggest_received", false);
|
||||
|
||||
if (!auto_identity)
|
||||
return null;
|
||||
|
||||
List<Integer> types = new ArrayList<>();
|
||||
if (suggest_sent)
|
||||
types.add(EntityContact.TYPE_TO);
|
||||
|
||||
Reference in New Issue
Block a user