Fixed check/sent warning

pull/200/head
M66B 3 years ago
parent 20cbf61f54
commit e22254e914

@ -295,6 +295,7 @@ public class FragmentAccount extends FragmentBase {
etInterval.setText(provider.keepalive > 0 ? Integer.toString(provider.keepalive) : null); etInterval.setText(provider.keepalive > 0 ? Integer.toString(provider.keepalive) : null);
cbPartialFetch.setChecked(provider.partial); cbPartialFetch.setChecked(provider.partial);
tvSentWarning.setVisibility(View.GONE);
grpFolders.setVisibility(View.GONE); grpFolders.setVisibility(View.GONE);
btnSave.setVisibility(View.GONE); btnSave.setVisibility(View.GONE);
cbIdentity.setVisibility(View.GONE); cbIdentity.setVisibility(View.GONE);
@ -640,6 +641,7 @@ public class FragmentAccount extends FragmentBase {
Helper.setViewsEnabled(view, false); Helper.setViewsEnabled(view, false);
pbCheck.setVisibility(View.VISIBLE); pbCheck.setVisibility(View.VISIBLE);
tvIdle.setVisibility(View.GONE); tvIdle.setVisibility(View.GONE);
tvSentWarning.setVisibility(View.GONE);
grpFolders.setVisibility(View.GONE); grpFolders.setVisibility(View.GONE);
grpError.setVisibility(View.GONE); grpError.setVisibility(View.GONE);
btnHelp.setVisibility(View.GONE); btnHelp.setVisibility(View.GONE);
@ -766,6 +768,7 @@ public class FragmentAccount extends FragmentBase {
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
tvSentWarning.setVisibility(View.GONE);
grpFolders.setVisibility(View.GONE); grpFolders.setVisibility(View.GONE);
btnSave.setVisibility(View.GONE); btnSave.setVisibility(View.GONE);
cbIdentity.setVisibility(View.GONE); cbIdentity.setVisibility(View.GONE);

@ -1036,7 +1036,7 @@
android:layout_height="0dp" android:layout_height="0dp"
app:constraint_referenced_ids=" app:constraint_referenced_ids="
tvDrafts,spDrafts,tvDraftsRemark, tvDrafts,spDrafts,tvDraftsRemark,
tvSent,spSent,tvSentWarning, tvSent,spSent,
tvArchive,spArchive, tvArchive,spArchive,
tvTrash,spTrash, tvTrash,spTrash,
tvJunk,spJunk, tvJunk,spJunk,

Loading…
Cancel
Save