Added workaround for Yahoo JP

This commit is contained in:
M66B
2021-09-06 19:12:46 +02:00
parent 82cc2fc620
commit 7ed38b50fe
3 changed files with 45 additions and 12 deletions

View File

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