Skip to content
This repository has been archived by the owner on Aug 9, 2020. It is now read-only.

Fixes incorrect activity start, when using RxAcitivtyResult inside so… #55

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

miszmaniac
Copy link

@miszmaniac miszmaniac commented Jun 6, 2018

When using methods like:
Completable.andThen() you can pass Observable without lambda method.
This is my example:

 networkStateRepository.requireNetworkConnectedOrError()
                .andThen(RxActivityResult.on(activity).startIntent(...))

Because another subscribe was called inside RxActivityResult it was not respecting error state from first method, which caused incorrect behavior.

After this fix, everything works as expected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant