1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Show "(No subject)" in the message view for mails without subject.

This commit is contained in:
cketti 2010-05-01 23:15:59 +00:00
parent fd26ec475a
commit f706861599

View File

@ -24,7 +24,6 @@ import android.view.animation.AccelerateInterpolator;
import android.view.animation.Animation;
import android.view.animation.TranslateAnimation;
import android.webkit.*;
import android.webkit.WebSettings.TextSize;
import android.widget.*;
import com.fsck.k9.*;
import com.fsck.k9.mail.*;
@ -265,7 +264,14 @@ public class MessageView extends K9Activity implements OnClickListener
public void run()
{
setTitle(subject);
mSubjectView.setText(subject);
if (subject == null || subject.equals(""))
{
mSubjectView.setText(getText(R.string.general_no_subject));
}
else
{
mSubjectView.setText(subject);
}
mFromView.setText(from);
if (date != null)
{