mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Small improvement
This commit is contained in:
parent
c8ff96f2b7
commit
812591d8b9
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue