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

Set abs title to (no subject) if the message has no subject.

This commit is contained in:
Andrew Chen 2012-09-06 18:04:59 -07:00
parent ed693fc01a
commit 31461bc657

View File

@ -929,7 +929,12 @@ public class MessageView extends K9Activity implements OnClickListener {
mMessageView.showStatusMessage(text); mMessageView.showStatusMessage(text);
} }
mMessageView.setHeaders(clonedMessage, account); mMessageView.setHeaders(clonedMessage, account);
final String subject = clonedMessage.getSubject();
if (subject == null || subject.equals("")) {
setTitle(getString(R.string.general_no_subject));
} else {
setTitle(clonedMessage.getSubject()); setTitle(clonedMessage.getSubject());
}
mMessageView.setOnFlagListener(new OnClickListener() { mMessageView.setOnFlagListener(new OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {