Yahoo fixed the character encoding problems

pull/212/head
M66B 2 years ago
parent 0eec3d0b4c
commit 687c168cea

@ -68,7 +68,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 = 271, version = 272,
entities = { entities = {
EntityIdentity.class, EntityIdentity.class,
EntityAccount.class, EntityAccount.class,
@ -2761,6 +2761,13 @@ public abstract class DB extends RoomDatabase {
db.execSQL("UPDATE account SET partial_fetch = 0, raw_fetch = 1" + db.execSQL("UPDATE account SET partial_fetch = 0, raw_fetch = 1" +
" WHERE host = 'imap.mail.yahoo.com' OR host = 'imap.aol.com'"); " WHERE host = 'imap.mail.yahoo.com' OR host = 'imap.aol.com'");
} }
}).addMigrations(new Migration(271, 272) {
@Override
public void migrate(@NonNull SupportSQLiteDatabase db) {
logMigration(startVersion, endVersion);
db.execSQL("UPDATE account SET partial_fetch = 1, raw_fetch = 0" +
" WHERE host = 'imap.mail.yahoo.com' OR host = 'imap.aol.com'");
}
}).addMigrations(new Migration(998, 999) { }).addMigrations(new Migration(998, 999) {
@Override @Override
public void migrate(@NonNull SupportSQLiteDatabase db) { public void migrate(@NonNull SupportSQLiteDatabase db) {

Loading…
Cancel
Save