fix regression with weird status expand animation

main
Conny Duck 5 years ago
parent 9e22f372d6
commit 0004ad88c3
  1. 1
      app/src/main/java/com/keylesspalace/tusky/adapter/StatusBaseViewHolder.java

@ -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());
}

Loading…
Cancel
Save