Enable noop by default

master
M66B 2 months ago
parent 2858b14c5a
commit ed740389d0

File diff suppressed because it is too large Load Diff

@ -70,7 +70,7 @@ import javax.mail.internet.InternetAddress;
// https://developer.android.com/topic/libraries/architecture/room.html // https://developer.android.com/topic/libraries/architecture/room.html
@Database( @Database(
version = 299, version = 300,
entities = { entities = {
EntityIdentity.class, EntityIdentity.class,
EntityAccount.class, EntityAccount.class,
@ -3039,6 +3039,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("UPDATE account SET keep_alive_noop = 1" + db.execSQL("UPDATE account SET keep_alive_noop = 1" +
" WHERE host = 'imap.mail.me.com' AND pop = " + EntityAccount.TYPE_IMAP); " WHERE host = 'imap.mail.me.com' AND pop = " + EntityAccount.TYPE_IMAP);
} }
}).addMigrations(new Migration(299, 300) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("UPDATE account SET keep_alive_noop = 1" +
" WHERE pop = " + EntityAccount.TYPE_IMAP);
}
}).addMigrations(new Migration(998, 999) { }).addMigrations(new Migration(998, 999) {
@Override @Override
public void migrate(@NonNull SupportSQLiteDatabase db) { public void migrate(@NonNull SupportSQLiteDatabase db) {

@ -262,7 +262,7 @@ public class EmailProvider implements Parcelable {
provider.order = getAttributeIntValue(xml, "order", Integer.MAX_VALUE); provider.order = getAttributeIntValue(xml, "order", Integer.MAX_VALUE);
provider.keepalive = getAttributeIntValue(xml, "keepalive", 0); provider.keepalive = getAttributeIntValue(xml, "keepalive", 0);
provider.noop = getAttributeBooleanValue(xml, "noop", false); provider.noop = getAttributeBooleanValue(xml, "noop", true);
provider.partial = getAttributeBooleanValue(xml, "partial", true); provider.partial = getAttributeBooleanValue(xml, "partial", true);
provider.raw = getAttributeBooleanValue(xml, "raw", false); provider.raw = getAttributeBooleanValue(xml, "raw", false);
provider.useip = getAttributeBooleanValue(xml, "useip", true); provider.useip = getAttributeBooleanValue(xml, "useip", true);

@ -140,7 +140,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
@NonNull @NonNull
public Integer poll_interval = DEFAULT_KEEP_ALIVE_INTERVAL; public Integer poll_interval = DEFAULT_KEEP_ALIVE_INTERVAL;
@NonNull @NonNull
public Boolean keep_alive_noop = false; public Boolean keep_alive_noop = true;
@NonNull @NonNull
public Boolean keep_alive_ok = false; public Boolean keep_alive_ok = false;
@NonNull @NonNull

Loading…
Cancel
Save