updateListView();
cache.getDeleteFab().setOnClickListener(new DeleteProductOnClickListener(cache));
overridePendingTransition(0, 0);
}
public void updateListView()
<BUG>{
List<ProductDto> allProducts = productService.getAllProducts(cache.getListId());
ListDto listDto = shoppingListService.getById(listId);</BUG>
String sortBy = listDto.getSortCriteria();
boolean sortAscending = listDto.isSortAscending();

updateListView();
cache.getDeleteFab().setOnClickListener(new DeleteProductOnClickListener(cache));
overridePendingTransition(0, 0);
}
public void updateListView()
{
List<ProductDto> allProducts = new ArrayList<>();
productService.getAllProducts(cache.getListId())
.doOnNext(dto -> allProducts.add(dto))
.doOnCompleted(() ->
{
ListDto listDto = shoppingListService.getById(listId);
String sortBy = listDto.getSortCriteria();
boolean sortAscending = listDto.isSortAscending();
