Fixed is transient account

This commit is contained in:
M66B 2020-12-27 16:35:48 +01:00
parent 08620fe75d
commit 0d7181cbbc
1 changed files with 1 additions and 1 deletions

View File

@ -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));
} }