Added workaround for Seznam server bug

This commit is contained in:
M66B
2021-09-12 21:35:19 +02:00
parent c304f5cd11
commit a13c296f1a
2 changed files with 36 additions and 28 deletions

View File

@@ -162,6 +162,10 @@ public class EntityAccount extends EntityOrder implements Serializable {
return "imap.mail.yahoo.co.jp".equalsIgnoreCase(host);
}
boolean isSeznam() {
return "imap.seznam.cz".equalsIgnoreCase(host);
}
boolean isTransient(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean enabled = prefs.getBoolean("enabled", true);