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
1 changed files with 16 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
@ -591,6 +594,18 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||
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) {
|
||||
/*
|
||||
* Create the message from all the data the user has entered.
|
||||
|
|
Loading…
Reference in a new issue