1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -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.setHeaders(clonedMessage, account);
setTitle(clonedMessage.getSubject());
final String subject = clonedMessage.getSubject();
if (subject == null || subject.equals("")) {
setTitle(getString(R.string.general_no_subject));
} else {
setTitle(clonedMessage.getSubject());
}
mMessageView.setOnFlagListener(new OnClickListener() {
@Override
public void onClick(View v) {