Warning for missing sent messages folder

This commit is contained in:
M66B
2021-07-11 17:26:56 +02:00
parent 72e0514b93
commit d0fa4677a7
5 changed files with 47 additions and 3 deletions

View File

@@ -52,6 +52,7 @@ public class FragmentDialogAccount extends FragmentDialogBase {
final TextView tvInbox = dview.findViewById(R.id.tvInbox);
final TextView tvDrafts = dview.findViewById(R.id.tvDrafts);
final TextView tvSent = dview.findViewById(R.id.tvSent);
final TextView tvSentWarning = dview.findViewById(R.id.tvSentWarning);
final TextView tvTrash = dview.findViewById(R.id.tvTrash);
final TextView tvJunk = dview.findViewById(R.id.tvJunk);
final TextView tvArchive = dview.findViewById(R.id.tvArchive);
@@ -76,6 +77,8 @@ public class FragmentDialogAccount extends FragmentDialogBase {
tvLeft.setText(null);
tvRight.setText(null);
tvSentWarning.setVisibility(View.GONE);
Bundle args = getArguments();
final long account = args.getLong("account");
@@ -132,6 +135,7 @@ public class FragmentDialogAccount extends FragmentDialogBase {
types.contains(EntityFolder.DRAFTS) ? check : close, null, null, null);
tvSent.setCompoundDrawablesRelative(
types.contains(EntityFolder.SENT) ? check : close, null, null, null);
tvSentWarning.setVisibility(types.contains(EntityFolder.SENT) ? View.GONE : View.VISIBLE);
tvTrash.setCompoundDrawablesRelative(
types.contains(EntityFolder.TRASH) ? check : close, null, null, null);
tvJunk.setCompoundDrawablesRelative(