mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 11:54:10 +01:00
Changed default keep alive to 9 minutes
This commit is contained in:
@@ -44,6 +44,8 @@ import androidx.room.PrimaryKey;
|
||||
public class EntityAccount implements Serializable {
|
||||
static final String TABLE_NAME = "account";
|
||||
|
||||
static final int DEFAULT_KEEP_ALIVE_INTERVAL = 9; // minutes
|
||||
|
||||
@PrimaryKey(autoGenerate = true)
|
||||
public Long id;
|
||||
|
||||
|
||||
@@ -825,7 +825,7 @@ public class FragmentAccount extends FragmentBase {
|
||||
if (synchronize && TextUtils.isEmpty(password) && !insecure)
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_password));
|
||||
if (TextUtils.isEmpty(interval))
|
||||
interval = "19";
|
||||
interval = Integer.toString(EntityAccount.DEFAULT_KEEP_ALIVE_INTERVAL);
|
||||
|
||||
if (TextUtils.isEmpty(realm))
|
||||
realm = null;
|
||||
|
||||
@@ -344,7 +344,7 @@ public class FragmentQuickSetup extends FragmentBase {
|
||||
account.primary = (primary == null);
|
||||
account.notify = false;
|
||||
account.browse = true;
|
||||
account.poll_interval = 19;
|
||||
account.poll_interval = EntityAccount.DEFAULT_KEEP_ALIVE_INTERVAL;
|
||||
account.prefix = provider.prefix;
|
||||
|
||||
account.created = now;
|
||||
|
||||
Reference in New Issue
Block a user