Fix bug with paired list incorrectly adding to the specified position.

This bug led to incorrect refreshing of the timeline
main
Ivan Kupalov 7 years ago
parent 6badc2639b
commit ff6e9804fd
  1. 2
      app/src/main/java/com/keylesspalace/tusky/util/PairedList.java

@ -68,7 +68,7 @@ public final class PairedList<T, V> extends AbstractList<T> {
@Override @Override
public void add(int index, T element) { public void add(int index, T element) {
synced.add(index, mapper.apply(element)); synced.add(index, mapper.apply(element));
main.add(element); main.add(index, element);
} }
@Override @Override

Loading…
Cancel
Save