holder.text1.setTextColor(defaultTextColor);
} else {
holder.text1.setTextColor(getResources().getColor(R.color.escape));
}
}
<BUG>holder.itemView.setOnClickListener(v -> {
final int which = holder.getAdapterPosition();</BUG>
final int ari = history.getAri(which);
jumpToAri(ari);
history.add(ari);

holder.text1.setTextColor(defaultTextColor);
} else {
holder.text1.setTextColor(getResources().getColor(R.color.escape));
}
}
holder.itemView.setOnClickListener(v -> {
dismissDialog();
final int which = holder.getAdapterPosition();
final int ari = history.getAri(which);
jumpToAri(ari);
history.add(ari);
