Added workaround for Zoho search bug

This commit is contained in:
M66B
2021-10-26 13:22:25 +02:00
parent 6624975514
commit a5da42e925
2 changed files with 9 additions and 0 deletions

View File

@@ -175,6 +175,10 @@ public class EntityAccount extends EntityOrder implements Serializable {
return "imap.seznam.cz".equalsIgnoreCase(host);
}
boolean isZoho() {
return (host != null && host.toLowerCase(Locale.ROOT).startsWith("imap.zoho."));
}
boolean isTransient(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean enabled = prefs.getBoolean("enabled", true);