aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-08-18 11:56:44 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-08-18 11:56:44 +0000
commit9870c592eba4b15826c26121f11b828ff4ce1c86 (patch)
treedb76e0d304b1b332ff1ba54ce3914859da55b922 /app/src/main
parentfdf15fcd0e2d7a5f892bbae1ba83efec2aac00a1 (diff)
downloadinfinity-for-reddit-9870c592eba4b15826c26121f11b828ff4ce1c86.tar
infinity-for-reddit-9870c592eba4b15826c26121f11b828ff4ce1c86.tar.gz
infinity-for-reddit-9870c592eba4b15826c26121f11b828ff4ce1c86.tar.bz2
infinity-for-reddit-9870c592eba4b15826c26121f11b828ff4ce1c86.tar.lz
infinity-for-reddit-9870c592eba4b15826c26121f11b828ff4ce1c86.tar.xz
infinity-for-reddit-9870c592eba4b15826c26121f11b828ff4ce1c86.tar.zst
infinity-for-reddit-9870c592eba4b15826c26121f11b828ff4ce1c86.zip
Minor bugs fixed.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java4
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java4
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PrivateMessagesDetailRecyclerViewAdapter.java1
3 files changed, 6 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java
index 0ca87693..92996de9 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/CommentsRecyclerViewAdapter.java
@@ -1145,7 +1145,9 @@ public class CommentsRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerVi
constraintSet.applyTo(bottomConstraintLayout);
}
- linearLayout.getLayoutTransition().setAnimateParentHierarchy(false);
+ if (linearLayout.getLayoutTransition() != null) {
+ linearLayout.getLayoutTransition().setAnimateParentHierarchy(false);
+ }
if (mShowCommentDivider) {
commentDivider.setBackgroundColor(mDividerColor);
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
index 73bfcc86..12d6c0d1 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
@@ -3265,7 +3265,9 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
constraintSet.applyTo(bottomConstraintLayout);
}
- ((ViewGroup) itemView).getLayoutTransition().setAnimateParentHierarchy(false);
+ if (((ViewGroup) itemView).getLayoutTransition() != null) {
+ ((ViewGroup) itemView).getLayoutTransition().setAnimateParentHierarchy(false);
+ }
itemView.setBackgroundColor(mCardViewBackgroundColor);
postTimeTextView.setTextColor(mSecondaryTextColor);
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PrivateMessagesDetailRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PrivateMessagesDetailRecyclerViewAdapter.java
index 1968391d..190b8ad5 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PrivateMessagesDetailRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PrivateMessagesDetailRecyclerViewAdapter.java
@@ -227,7 +227,6 @@ public class PrivateMessagesDetailRecyclerViewAdapter extends RecyclerView.Adapt
this.messageTextView = messageTextView;
this.timeTextView = timeTextView;
- ((ViewGroup) itemView).getLayoutTransition().setAnimateParentHierarchy(false);
messageTextView.setTextColor(Color.WHITE);
timeTextView.setTextColor(mSecondaryTextColor);
}