Minor bugs fixed.

This commit is contained in:
Alex Ning 2021-08-18 19:56:44 +08:00
parent fdf15fcd0e
commit 9870c592eb
3 changed files with 6 additions and 3 deletions

View File

@ -1145,7 +1145,9 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi
constraintSet.applyTo(bottomConstraintLayout); constraintSet.applyTo(bottomConstraintLayout);
} }
linearLayout.getLayoutTransition().setAnimateParentHierarchy(false); if (linearLayout.getLayoutTransition() != null) {
linearLayout.getLayoutTransition().setAnimateParentHierarchy(false);
}
if (mShowCommentDivider) { if (mShowCommentDivider) {
commentDivider.setBackgroundColor(mDividerColor); commentDivider.setBackgroundColor(mDividerColor);

View File

@ -3265,7 +3265,9 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
constraintSet.applyTo(bottomConstraintLayout); constraintSet.applyTo(bottomConstraintLayout);
} }
((ViewGroup) itemView).getLayoutTransition().setAnimateParentHierarchy(false); if (((ViewGroup) itemView).getLayoutTransition() != null) {
((ViewGroup) itemView).getLayoutTransition().setAnimateParentHierarchy(false);
}
itemView.setBackgroundColor(mCardViewBackgroundColor); itemView.setBackgroundColor(mCardViewBackgroundColor);
postTimeTextView.setTextColor(mSecondaryTextColor); postTimeTextView.setTextColor(mSecondaryTextColor);

View File

@ -227,7 +227,6 @@ public class PrivateMessagesDetailRecyclerViewAdapter extends RecyclerView.Adapt
this.messageTextView = messageTextView; this.messageTextView = messageTextView;
this.timeTextView = timeTextView; this.timeTextView = timeTextView;
((ViewGroup) itemView).getLayoutTransition().setAnimateParentHierarchy(false);
messageTextView.setTextColor(Color.WHITE); messageTextView.setTextColor(Color.WHITE);
timeTextView.setTextColor(mSecondaryTextColor); timeTextView.setTextColor(mSecondaryTextColor);
} }