fix problem with spark buttons behaving weirdly

This commit is contained in:
Conny Duck 2017-12-01 22:13:47 +01:00
commit 7cc1ed9844
4 changed files with 6 additions and 6 deletions

View file

@ -204,7 +204,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
public void updateItemWithNotify(int position, NotificationViewData notification,
boolean notifyAdapter) {
notifications.set(position, notification);
if (notifyAdapter) notifyDataSetChanged();
if (notifyAdapter) notifyItemChanged(position);
}
public void addItems(List<NotificationViewData> newNotifications) {

View file

@ -122,7 +122,7 @@ public class TimelineAdapter extends RecyclerView.Adapter {
public void changeItem(int position, StatusViewData newData, boolean notifyAdapter) {
statuses.set(position, newData);
if (notifyAdapter) notifyDataSetChanged();
if (notifyAdapter) notifyItemChanged(position);
}
public void clear() {