1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-04 06:20:26 +00:00

Small fix

This commit is contained in:
M66B 2020-04-10 17:21:57 +02:00
parent 5cce6832a8
commit 11322f1b3e

View file

@ -105,7 +105,7 @@ public class Widget extends AppWidgetProvider {
? R.drawable.baseline_mail_outline_24
: R.drawable.baseline_mail_24);
views.setTextViewText(R.id.tvCount, unseen < 100 ? nf.format(unseen) : "99+");
views.setViewVisibility(R.id.tvCount, unseen == 0 ? View.GONE : View.VISIBLE);
views.setViewVisibility(R.id.tvCount, layout == 1 && unseen == 0 ? View.GONE : View.VISIBLE);
if (!TextUtils.isEmpty(name)) {
views.setTextViewText(R.id.tvAccount, name);