Partial fetch configuration

This commit is contained in:
M66B
2019-12-05 17:48:56 +01:00
parent 4fba20b078
commit 3334cba92d
5 changed files with 13 additions and 28 deletions

View File

@@ -272,6 +272,7 @@ public class FragmentAccount extends FragmentBase {
etName.setText(position > 1 ? provider.name : null);
etInterval.setText(provider.keepalive > 0 ? Integer.toString(provider.keepalive) : null);
cbPartialFetch.setChecked(provider.partial);
grpFolders.setVisibility(View.GONE);
btnSave.setVisibility(View.GONE);
@@ -559,7 +560,6 @@ public class FragmentAccount extends FragmentBase {
iservice.connect(host, Integer.parseInt(port), auth, user, password);
result.idle = iservice.hasCapability("IDLE");
result.empty = iservice.emptyMessages();
boolean inbox = false;
@@ -631,8 +631,6 @@ public class FragmentAccount extends FragmentBase {
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);
setFolders(result.folders, result.account);
@@ -1552,6 +1550,5 @@ public class FragmentAccount extends FragmentBase {
List<EntityFolder> folders;
boolean idle;
Boolean utf8;
boolean empty;
}
}