Fix minor issue in PostRecyclerViewAdapter.

This commit is contained in:
Alex Ning 2020-09-26 17:47:40 +08:00
parent b47422fd75
commit 3ce0d41b5c

View File

@ -783,7 +783,6 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
}
if (mCompactLayoutToolbarHiddenByDefault) {
mCallback.delayTransition();
ViewGroup.LayoutParams params = (LinearLayout.LayoutParams) ((PostCompactBaseViewHolder) holder).bottomConstraintLayout.getLayoutParams();
params.height = 0;
((PostCompactBaseViewHolder) holder).bottomConstraintLayout.setLayoutParams(params);
@ -791,7 +790,6 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
ViewGroup.LayoutParams params = (LinearLayout.LayoutParams) ((PostCompactBaseViewHolder) holder).bottomConstraintLayout.getLayoutParams();
params.height = LinearLayout.LayoutParams.WRAP_CONTENT;
((PostCompactBaseViewHolder) holder).bottomConstraintLayout.setLayoutParams(params);
mCallback.delayTransition();
}
if (mShowDividerInCompactLayout) {