Check drafts on saving primary account only

pull/12/merge
M66B 7 years ago
parent 29ae761435
commit 20d60fafe8

@ -20,9 +20,13 @@
# hide the original source file name. # hide the original source file name.
-renamesourcefileattribute SourceFile -renamesourcefileattribute SourceFile
#App
-keep class eu.faircode.email.** -keep class eu.faircode.email.**
-keepnames class eu.faircode.email.** { *; } -keepnames class eu.faircode.email.** { *; }
#Support library
-keep class android.support.v7.app.AppCompatViewInflater{ <init>(...); }
#JavaMail #JavaMail
-dontshrink -dontshrink
-keep class javax.** {*;} -keep class javax.** {*;}

@ -242,7 +242,7 @@ public class FragmentAccount extends Fragment {
} }
} }
} }
if (!drafts) if (account.primary && !drafts)
throw new MessagingException(getContext().getString(R.string.title_no_drafts)); throw new MessagingException(getContext().getString(R.string.title_no_drafts));
} finally { } finally {
if (istore != null) if (istore != null)

Loading…
Cancel
Save