Default poll interval 12 minutes

This commit is contained in:
M66B 2019-10-17 17:24:04 +02:00
parent 32bcd12726
commit 7d98136278
2 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public class EntityAccount extends EntityOrder implements Serializable {
// https://tools.ietf.org/html/rfc2177
static final int DEFAULT_KEEP_ALIVE_INTERVAL = 24; // minutes
static final int DEFAULT_POLL_INTERVAL = 12; // minutes
@PrimaryKey(autoGenerate = true)
public Long id;

View File

@ -626,6 +626,8 @@ public class FragmentAccount extends FragmentBase {
protected void onExecuted(Bundle args, CheckResult result) {
tvIdle.setVisibility(result.idle ? View.GONE : View.VISIBLE);
tvUtf8.setVisibility(result.utf8 == null || result.utf8 ? View.GONE : View.VISIBLE);
if (!result.idle)
etInterval.setText(Integer.toString(EntityAccount.DEFAULT_POLL_INTERVAL));
if (result.empty)
cbPartialFetch.setChecked(false);