diff --git a/sample-mvi/src/main/java/com/hannesdorfmann/mosby3/sample/mvi/view/shoppingcartoverview/ShoppingCartOverviewPresenter.java b/sample-mvi/src/main/java/com/hannesdorfmann/mosby3/sample/mvi/view/shoppingcartoverview/ShoppingCartOverviewPresenter.java index c961b2dc..241210fc 100644 --- a/sample-mvi/src/main/java/com/hannesdorfmann/mosby3/sample/mvi/view/shoppingcartoverview/ShoppingCartOverviewPresenter.java +++ b/sample-mvi/src/main/java/com/hannesdorfmann/mosby3/sample/mvi/view/shoppingcartoverview/ShoppingCartOverviewPresenter.java @@ -57,7 +57,9 @@ public ShoppingCartOverviewPresenter(ShoppingCart shoppingCart, intent(ShoppingCartOverviewView::selectItemsIntent) .mergeWith(clearSelectionIntent.map(ignore -> Collections.emptyList())) .doOnNext(items -> Timber.d("intent: selected items %d", items.size())) - .startWith(new ArrayList(0)); + .startWith(new ArrayList(0)) + .publish() + .refCount(); // // Delete multiple selected Items