From 750bf3299fb766ad9b797992e8bbd8f8a9343af8 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 2 Feb 2019 20:12:17 +0000 Subject: [PATCH] Drop drafts folder requirement --- .../java/eu/faircode/email/FragmentAccount.java | 2 -- app/src/main/res/layout/fragment_account.xml | 14 ++++++++++++-- app/src/main/res/values/strings.xml | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentAccount.java b/app/src/main/java/eu/faircode/email/FragmentAccount.java index 0630e5c5ad..083a3a7266 100644 --- a/app/src/main/java/eu/faircode/email/FragmentAccount.java +++ b/app/src/main/java/eu/faircode/email/FragmentAccount.java @@ -807,8 +807,6 @@ public class FragmentAccount extends FragmentBase { throw new IllegalArgumentException(context.getString(R.string.title_no_password)); if (TextUtils.isEmpty(interval)) interval = "19"; - if (synchronize && drafts == null) - throw new IllegalArgumentException(context.getString(R.string.title_no_drafts)); if (TextUtils.isEmpty(realm)) realm = null; diff --git a/app/src/main/res/layout/fragment_account.xml b/app/src/main/res/layout/fragment_account.xml index ba17a9a96e..f8d901e45b 100644 --- a/app/src/main/res/layout/fragment_account.xml +++ b/app/src/main/res/layout/fragment_account.xml @@ -541,6 +541,16 @@ app:layout_constraintStart_toEndOf="@id/barrier_folders" app:layout_constraintTop_toBottomOf="@id/tvIdle" /> + + + app:layout_constraintTop_toBottomOf="@id/tvDraftsRemark" /> + app:constraint_referenced_ids="tvDrafts,spDrafts,tvDraftsRemark,tvSent,spSent,tvAll,spAll,tvTrash,spTrash,tvJunk,spJunk,vSeparatorSwipe,tvLeft,spLeft,tvRight,spRight" /> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index caaa333e3d..e661aef116 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -232,10 +232,10 @@ User name missing Password missing Inbox not found - No drafts folder selected No primary account or no drafts folder This provider does not support push messages. This will delay reception of new messages and increase battery usage. Synchronization errors since %1$s + A drafts folder is required to send messages Delete this account permanently? Delete this identity permanently? POP is not supported