mirror of https://github.com/M66B/FairEmail.git
Fixed is transient account
This commit is contained in:
parent
08620fe75d
commit
0d7181cbbc
|
@ -154,7 +154,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
|
||||||
boolean isTransient(Context context) {
|
boolean isTransient(Context context) {
|
||||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
|
||||||
boolean enabled = prefs.getBoolean("enabled", true);
|
boolean enabled = prefs.getBoolean("enabled", true);
|
||||||
int pollInterval = prefs.getInt("poll_interval", DEFAULT_POLL_INTERVAL);
|
int pollInterval = prefs.getInt("poll_interval", ServiceSynchronize.DEFAULT_POLL_INTERVAL);
|
||||||
return (!enabled || this.ondemand || (pollInterval > 0 && !this.poll_exempted));
|
return (!enabled || this.ondemand || (pollInterval > 0 && !this.poll_exempted));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue