Refactoring

This commit is contained in:
M66B
2019-07-22 09:52:08 +02:00
parent 704b5c30b0
commit 049f3c342d
7 changed files with 20 additions and 20 deletions

View File

@@ -68,7 +68,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
private List<TupleAccountEx> items = new ArrayList<>();
private NumberFormat nf = NumberFormat.getNumberInstance();
private NumberFormat NF = NumberFormat.getNumberInstance();
private DateFormat DTF;
public class ViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener {
@@ -136,7 +136,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
tvName.setText(account.name);
else {
if (account.unseen > 0)
tvName.setText(context.getString(R.string.title_name_count, account.name, nf.format(account.unseen)));
tvName.setText(context.getString(R.string.title_name_count, account.name, NF.format(account.unseen)));
else
tvName.setText(account.name);