1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 20:54:34 +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,7 +152,8 @@ public class AdapterAccount extends RecyclerView.Adapter<AdapterAccount.ViewHold
btnHelp = itemView.findViewById(R.id.btnHelp);
grpSettings = itemView.findViewById(R.id.grpSettings);
vwColor.getLayoutParams().width = colorStripeWidth;
if (vwColor != null)
vwColor.getLayoutParams().width = colorStripeWidth;
}
private void wire() {

View file

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

View file

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