fix problem with spark buttons behaving weirdly
This commit is contained in:
parent
bf4d0bb722
commit
7cc1ed9844
4 changed files with 6 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue