1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 09:52:16 -05:00

Factor out signature generation

* No longer generate a signature when we don't have one defined
This commit is contained in:
Jesse Vincent 2008-10-31 22:39:00 +00:00
parent 5864a7e9bf
commit f8eb22f168

View File

@ -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.