1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-02 21:24:34 +00:00

Check drafts on saving primary account only

This commit is contained in:
M66B 2018-08-03 09:05:05 +00:00
parent 29ae761435
commit 20d60fafe8
2 changed files with 5 additions and 1 deletions

View file

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

View file

@ -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));
} finally {
if (istore != null)