mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Add javadoc for getSignatureHtml() and use StringUtil.isNullOrEmpty().
This commit is contained in:
parent
37f480c969
commit
22e61b987e
@ -10,6 +10,7 @@ import java.util.regex.Pattern;
|
|||||||
import android.text.*;
|
import android.text.*;
|
||||||
import android.webkit.WebViewClient;
|
import android.webkit.WebViewClient;
|
||||||
import com.fsck.k9.helper.HtmlConverter;
|
import com.fsck.k9.helper.HtmlConverter;
|
||||||
|
import com.fsck.k9.helper.StringUtils;
|
||||||
import com.fsck.k9.mail.*;
|
import com.fsck.k9.mail.*;
|
||||||
import com.fsck.k9.view.MessageWebView;
|
import com.fsck.k9.view.MessageWebView;
|
||||||
import org.apache.james.mime4j.codec.EncoderUtil;
|
import org.apache.james.mime4j.codec.EncoderUtil;
|
||||||
@ -1395,11 +1396,15 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
|||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get an HTML version of the signature in the #mSignatureView, if any.
|
||||||
|
* @return HTML version of signature.
|
||||||
|
*/
|
||||||
private String getSignatureHtml() {
|
private String getSignatureHtml() {
|
||||||
String signature = "";
|
String signature = "";
|
||||||
if (mIdentity.getSignatureUse()) {
|
if (mIdentity.getSignatureUse()) {
|
||||||
signature = mSignatureView.getText().toString();
|
signature = mSignatureView.getText().toString();
|
||||||
if (signature != null && !signature.contentEquals("")) {
|
if(!StringUtils.isNullOrEmpty(signature)) {
|
||||||
signature = HtmlConverter.textToHtmlFragment("\n" + signature);
|
signature = HtmlConverter.textToHtmlFragment("\n" + signature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user