From 3fc182caf8fe01e61e9aa3426e19d949573f9739 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 8 Apr 2020 16:59:27 +0200 Subject: [PATCH] Small improvement --- .../email/WidgetUnifiedRemoteViewsFactory.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/WidgetUnifiedRemoteViewsFactory.java b/app/src/main/java/eu/faircode/email/WidgetUnifiedRemoteViewsFactory.java index 4d6d84d436..cc61314a4c 100644 --- a/app/src/main/java/eu/faircode/email/WidgetUnifiedRemoteViewsFactory.java +++ b/app/src/main/java/eu/faircode/email/WidgetUnifiedRemoteViewsFactory.java @@ -128,12 +128,16 @@ public class WidgetUnifiedRemoteViewsFactory implements RemoteViewsService.Remot thread.putExtra("id", message.id); views.setOnClickFillInIntent(R.id.llMessage, thread); - SpannableString ssFrom = new SpannableString(MessageHelper.formatAddressesShort(message.from)); - SpannableString ssTime = new SpannableString(Helper.getRelativeTimeSpanString(context, message.received)); + SpannableString ssFrom = new SpannableString(pro + ? MessageHelper.formatAddressesShort(message.from) + : context.getString(R.string.title_pro_feature)); + SpannableString ssTime = new SpannableString( + Helper.getRelativeTimeSpanString(context, message.received)); SpannableString ssSubject = new SpannableString(pro ? TextUtils.isEmpty(message.subject) ? "" : message.subject : context.getString(R.string.title_pro_feature)); - SpannableString ssAccount = new SpannableString(TextUtils.isEmpty(message.accountName) ? "" : message.accountName); + SpannableString ssAccount = new SpannableString( + TextUtils.isEmpty(message.accountName) ? "" : message.accountName); if (message.ui_seen) { if (subject_italic)