mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Refactoring
This commit is contained in:
@@ -95,10 +95,10 @@ public class AdapterNavUnified extends RecyclerView.Adapter<AdapterNavUnified.Vi
|
||||
count = folder.unseen;
|
||||
|
||||
if (count == 0)
|
||||
tvItem.setText(Helper.localizeFolderType(context, folder.type));
|
||||
tvItem.setText(EntityFolder.localizeType(context, folder.type));
|
||||
else
|
||||
tvItem.setText(context.getString(R.string.title_name_count,
|
||||
Helper.localizeFolderType(context, folder.type), NF.format(count)));
|
||||
EntityFolder.localizeType(context, folder.type), NF.format(count)));
|
||||
|
||||
tvItem.setTextColor(count == 0 ? textColorSecondary : colorUnread);
|
||||
tvItem.setTypeface(count == 0 ? Typeface.DEFAULT : Typeface.DEFAULT_BOLD);
|
||||
|
||||
Reference in New Issue
Block a user