Prevent crash

pull/194/merge
M66B 3 years ago
parent 85bc0a1567
commit a8eb149cfa

@ -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() {

@ -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() {

@ -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() {

Loading…
Cancel
Save