Skip to content

Commit

Permalink
Updated mvi sample to match latest viewgroup delegate impl
Browse files Browse the repository at this point in the history
  • Loading branch information
sockeqwe committed Mar 29, 2017
1 parent a2e6492 commit 925e7c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class CheckoutButton extends Button implements CheckoutButtonView,
ViewGroupMviDelegateCallback<CheckoutButtonView, CheckoutButtonPresenter> {

private final ViewGroupMviDelegate<CheckoutButtonView, CheckoutButtonPresenter> mviDelegate =
new ViewGroupMviDelegateImpl<>(this);
new ViewGroupMviDelegateImpl<>(this, this, true);

public CheckoutButton(Context context, AttributeSet attrs) {
super(context, attrs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class SelectedCountToolbar extends Toolbar implements SelectedCountToolba
ViewGroupMviDelegateCallback<SelectedCountToolbarView, SelectedCountToolbarPresenter> {

private final ViewGroupMviDelegate<SelectedCountToolbarView, SelectedCountToolbarPresenter>
mviDelegate = new ViewGroupMviDelegateImpl<>(this);
mviDelegate = new ViewGroupMviDelegateImpl<>(this, this, true);

private final PublishSubject<Boolean> clearSelectionIntent = PublishSubject.create();
private final PublishSubject<Boolean> deleteSelectedItemsIntent = PublishSubject.create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class ShoppingCartLabel extends AppCompatButton implements ShoppingCartLa
ViewGroupMviDelegateCallback<ShoppingCartLabelView, ShoppingCartLabelPresenter> {

private final ViewGroupMviDelegate<ShoppingCartLabelView, ShoppingCartLabelPresenter>
mviDelegate = new ViewGroupMviDelegateImpl<>(this);
mviDelegate = new ViewGroupMviDelegateImpl<>(this, this, true);

public ShoppingCartLabel(Context context, AttributeSet attrs) {
super(context, attrs);
Expand Down

0 comments on commit 925e7c9

Please sign in to comment.