From c6aad085a9333c9266a5d58825ca9b6baaf71504 Mon Sep 17 00:00:00 2001 From: Ivan Kupalov Date: Fri, 14 Jul 2017 06:51:03 +0300 Subject: [PATCH] Fix bug with paired list incorrectly adding to the specified position. This bug led to incorrect refreshing of the timeline --- app/src/main/java/com/keylesspalace/tusky/util/PairedList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/util/PairedList.java b/app/src/main/java/com/keylesspalace/tusky/util/PairedList.java index 41d3ba48..a4f5e34e 100644 --- a/app/src/main/java/com/keylesspalace/tusky/util/PairedList.java +++ b/app/src/main/java/com/keylesspalace/tusky/util/PairedList.java @@ -68,7 +68,7 @@ public final class PairedList extends AbstractList { @Override public void add(int index, T element) { synced.add(index, mapper.apply(element)); - main.add(element); + main.add(index, element); } @Override