Skip to content

Commit

Permalink
fix bug cause by null opinion
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenceDut committed Jul 2, 2019
1 parent 32354a0 commit d4085ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,10 @@ public void onBindViewHolder(@NonNull BaseDiffViewHolder holder, int position, @
}
}
}
if (diffPayloads.isEmpty() && payloadKeys!=null && payloadKeys.isEmpty()) {
if (payloadKeys ==null || (diffPayloads.isEmpty() && payloadKeys.isEmpty())) {
this.onBindViewHolder(holder, position);
} else {
if (payloadKeys!=null && payloadKeys.isEmpty()) {
if (payloadKeys.isEmpty()) {
holder.updatePartWithPayload(mDatas.get(position), diffPayloads, position);
} else {
holder.updatePartWithPayload(mDatas.get(position), payloadKeys, position);
Expand Down

0 comments on commit d4085ec

Please sign in to comment.