Clear list before setting all currencies

This commit is contained in:
Christoph Atteneder 2018-09-18 20:38:18 +02:00
parent f7e4e5ae14
commit 064335716a
No known key found for this signature in database
GPG Key ID: CD5DC1C529CDFD3B

View File

@ -60,6 +60,7 @@ public class CurrencyList {
List<CurrencyListItem> result = Lists.newLinkedList();
Optional.ofNullable(first).ifPresent(result::add);
result.addAll(getPartitionedSortedItems(currencies));
delegate.clear();
delegate.addAll(result);
}