1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Rename mDraft to mInsertSeparator.

This commit is contained in:
Koji Arai 2014-05-02 08:36:46 +09:00
parent a08687b70e
commit 56a48476e4
2 changed files with 11 additions and 14 deletions

View File

@ -1368,13 +1368,9 @@ public class MessageCompose extends K9Activity implements OnClickListener,
boolean includeQuotedText = (isDraft || mQuotedTextMode == QuotedTextMode.SHOW);
textBodyBuilder.setIncludeQuotedText(includeQuotedText);
if (!isDraft) {
textBodyBuilder.setAppendSignature(true);
}
else {
textBodyBuilder.setAppendSignature(false);
}
textBodyBuilder.setDraft(isDraft);
textBodyBuilder.setAppendSignature(!isDraft);
textBodyBuilder.setInsertSeparator(!isDraft);
textBodyBuilder.setSignatureBeforeQuotedText(mAccount.isSignatureBeforeQuotedText());
if (mQuoteStyle == QuoteStyle.PREFIX && mAccount.isReplyAfterQuote()) {

View File

@ -13,7 +13,8 @@ public class TextBodyBuilder {
private boolean mIncludeQuotedText = true;
private boolean mReplyAfterQuote = false;
private boolean mSignatureBeforeQuotedText = false;
private boolean mDraft = false;
private boolean mInsertSeparator = false;
private boolean mAppendSignature = true;
// message parts
@ -77,14 +78,14 @@ public class TextBodyBuilder {
if (mReplyAfterQuote) {
quotedHtmlContent.setInsertionLocation(
InsertableHtmlContent.InsertionLocation.AFTER_QUOTE);
if (!mDraft) {
if (mInsertSeparator) {
text = "<br clear=\"all\">" + text;
}
}
else {
quotedHtmlContent.setInsertionLocation(
InsertableHtmlContent.InsertionLocation.BEFORE_QUOTE);
if (!mDraft) {
if (mInsertSeparator) {
text += "<br><br>";
}
}
@ -227,12 +228,12 @@ public class TextBodyBuilder {
mIncludeQuotedText = includeQuotedText;
}
public boolean isDraft() {
return mDraft;
public boolean isInsertSeparator() {
return mInsertSeparator;
}
public void setDraft(boolean draft) {
mDraft = draft;
public void setInsertSeparator(boolean insertSeparator) {
mInsertSeparator = insertSeparator;
}
public boolean isSignatureBeforeQuotedText() {