1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Small improvement

This commit is contained in:
M66B 2022-03-05 19:39:45 +01:00
parent c8ff96f2b7
commit 812591d8b9

View file

@ -152,7 +152,9 @@ public class Widget extends AppWidgetProvider {
views.setViewVisibility(R.id.tvCount, layout == 1 && unseen == 0 ? View.GONE : View.VISIBLE);
// Set account name
if (!TextUtils.isEmpty(name)) {
if (TextUtils.isEmpty(name))
views.setViewVisibility(R.id.tvAccount, ViewStripe.GONE);
else {
views.setTextViewText(R.id.tvAccount, name);
views.setViewVisibility(R.id.tvAccount, ViewStripe.VISIBLE);
}