mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Factor out signature generation
* No longer generate a signature when we don't have one defined
This commit is contained in:
parent
5864a7e9bf
commit
f8eb22f168
@ -549,7 +549,10 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
text += "\n-- \n" + mAccount.getSignature();
|
|
||||||
|
|
||||||
|
text = appendSignature(text);
|
||||||
|
|
||||||
|
|
||||||
TextBody body = new TextBody(text);
|
TextBody body = new TextBody(text);
|
||||||
|
|
||||||
@ -591,6 +594,18 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private String appendSignature (String text) {
|
||||||
|
String mSignature;
|
||||||
|
mSignature = mAccount.getSignature();
|
||||||
|
|
||||||
|
if (mSignature != null && ! mSignature.contentEquals("")){
|
||||||
|
text += "\n-- \n" + mAccount.getSignature();
|
||||||
|
}
|
||||||
|
|
||||||
|
return text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void sendOrSaveMessage(boolean save) {
|
private void sendOrSaveMessage(boolean save) {
|
||||||
/*
|
/*
|
||||||
* Create the message from all the data the user has entered.
|
* Create the message from all the data the user has entered.
|
||||||
|
Loading…
Reference in New Issue
Block a user