fix regression with weird status expand animation

This commit is contained in:
Conny Duck 2019-09-07 16:22:42 +02:00
parent cbbc670c46
commit 0e2a786b61

View file

@ -186,6 +186,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
contentWarningButton.setVisibility(View.VISIBLE);
contentWarningButton.setChecked(expanded);
contentWarningButton.setOnCheckedChangeListener((buttonView, isChecked) -> {
contentWarningDescription.invalidate();
if (getAdapterPosition() != RecyclerView.NO_POSITION) {
listener.onExpandedChange(isChecked, getAdapterPosition());
}