Check stable viewtype (#1421)

This commit is contained in:
LoveSy 2021-11-21 17:19:47 +08:00 committed by GitHub
parent 04b5a087b8
commit 778d363c61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -361,7 +361,7 @@ public class RepoItemFragment extends BaseFragment implements RepoLoader.Listene
@Override
public void onBindViewHolder(@NonNull ReleaseAdapter.ViewHolder holder, int position) {
if (position == items.size()) {
if (holder.getItemViewType() == 1) {
holder.progress.setVisibility(View.GONE);
holder.title.setVisibility(View.VISIBLE);
holder.itemView.setOnClickListener(v -> {