Benoît Quenaudon
1 min readJun 7, 2017

--

About navigation on click, I usually do everything inside my Activity. This does not need to go into the binder as the intent does not involve side effects.

For instance, I would have something like this

private void bind() {
disposables.add(
stateBinder.getStatesAsObservable().subscribe(this::render)
);
stateBinder.forwardIntents(intents());
disposables.add(
adapter.getMatchRowClickObservable()
.subscribe(match ->
flowController.toMatch(match.matchId()))
);
}

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)

Write a response