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

Prevent crash

This commit is contained in:
M66B 2021-11-30 14:48:46 +01:00
parent 85bc0a1567
commit a8eb149cfa
3 changed files with 6 additions and 3 deletions

View file

@ -152,6 +152,7 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
btnHelp = itemView.findViewById(R.id.btnHelp);
grpSettings = itemView.findViewById(R.id.grpSettings);
if (vwColor != null)
vwColor.getLayoutParams().width = colorStripeWidth;
}

View file

@ -187,6 +187,7 @@ public class AdapterFolder extends RecyclerView.Adapter<AdapterFolder.ViewHolder
grpFlagged = itemView.findViewById(R.id.grpFlagged);
grpExtended = itemView.findViewById(R.id.grpExtended);
if (vwColor != null)
vwColor.getLayoutParams().width = colorStripeWidth;
}

View file

@ -114,6 +114,7 @@ public class AdapterIdentity extends RecyclerView.Adapter<AdapterIdentity.ViewHo
tvDrafts = itemView.findViewById(R.id.tvDrafts);
tvError = itemView.findViewById(R.id.tvError);
if (vwColor != null)
vwColor.getLayoutParams().width = colorStripeWidth;
}