Browse Source

Check drafts on saving primary account only

main
M66B 6 years ago
parent
commit
20d60fafe8
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      app/proguard-rules.pro
  2. +1
    -1
      app/src/main/java/eu/faircode/email/FragmentAccount.java

+ 4
- 0
app/proguard-rules.pro View File

@ -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.** {*;}


+ 1
- 1
app/src/main/java/eu/faircode/email/FragmentAccount.java 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)); throw new MessagingException(getContext().getString(R.string.title_no_drafts));
} finally { } finally {
if (istore != null) if (istore != null)


Loading…
Cancel
Save