fix regression with weird status expand animation
This commit is contained in:
parent
cbbc670c46
commit
0e2a786b61
|
@ -186,6 +186,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||||
contentWarningButton.setVisibility(View.VISIBLE);
|
contentWarningButton.setVisibility(View.VISIBLE);
|
||||||
contentWarningButton.setChecked(expanded);
|
contentWarningButton.setChecked(expanded);
|
||||||
contentWarningButton.setOnCheckedChangeListener((buttonView, isChecked) -> {
|
contentWarningButton.setOnCheckedChangeListener((buttonView, isChecked) -> {
|
||||||
|
contentWarningDescription.invalidate();
|
||||||
if (getAdapterPosition() != RecyclerView.NO_POSITION) {
|
if (getAdapterPosition() != RecyclerView.NO_POSITION) {
|
||||||
listener.onExpandedChange(isChecked, getAdapterPosition());
|
listener.onExpandedChange(isChecked, getAdapterPosition());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue