mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Update M-net host name
This commit is contained in:
parent
cec15d6079
commit
cc576a4c71
1 changed files with 12 additions and 0 deletions
|
@ -3,6 +3,7 @@ package eu.faircode.email;
|
|||
import static eu.faircode.email.ServiceAuthenticator.AUTH_TYPE_PASSWORD;
|
||||
|
||||
import android.app.ActivityManager;
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.content.SharedPreferences;
|
||||
import android.database.Cursor;
|
||||
|
@ -521,6 +522,17 @@ public abstract class DB extends RoomDatabase {
|
|||
dropTriggers(db);
|
||||
|
||||
createTriggers(db);
|
||||
|
||||
ContentValues cv = new ContentValues();
|
||||
cv.put("host", "imap.mnet-online.de");
|
||||
int rows = db.update(
|
||||
"account",
|
||||
SQLiteDatabase.CONFLICT_ABORT,
|
||||
cv,
|
||||
"host = ?",
|
||||
new Object[]{"mail.m-online.net"});
|
||||
if (rows > 0)
|
||||
EntityLog.log(context, "M-net updated");
|
||||
} catch (Throwable ex) {
|
||||
/*
|
||||
at eu.faircode.email.DB$6.onOpen(DB.java:522)
|
||||
|
|
Loading…
Reference in a new issue