Default poll interval 12 minutes

pull/163/head
M66B 5 years ago
parent 32bcd12726
commit 7d98136278

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

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

Loading…
Cancel
Save