Browse Source
fix following request not refreshing
(untested)
renovate/org.jetbrains.kotlinx-kotlinx-coroutines-test-1.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
2 additions and
2 deletions
-
app/src/main/java/awais/instagrabber/adapters/NotificationsAdapter.java
|
|
@ -24,12 +24,12 @@ public final class NotificationsAdapter extends ListAdapter<Notification, Notifi |
|
|
|
private static final DiffUtil.ItemCallback<Notification> DIFF_CALLBACK = new DiffUtil.ItemCallback<Notification>() { |
|
|
|
@Override |
|
|
|
public boolean areItemsTheSame(final Notification oldItem, final Notification newItem) { |
|
|
|
return oldItem != null && newItem != null && oldItem.getPk().equals(newItem.getPk()); |
|
|
|
return oldItem.getPk().equals(newItem.getPk()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public boolean areContentsTheSame(@NonNull final Notification oldItem, @NonNull final Notification newItem) { |
|
|
|
return oldItem.getPk().equals(newItem.getPk()); |
|
|
|
return oldItem.getPk().equals(newItem.getPk()) && oldItem.getType() == newItem.getType(); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|