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

Commit

Permalink
Separate stream+operators from subscription.
Browse files Browse the repository at this point in the history
Summary: Fix for http://codereview.cc/D2152#inline-8379

Reviewers: O6 Material Motion Android platform reviewers, O2 Material Motion, featherless

Reviewed By: O6 Material Motion Android platform reviewers, O2 Material Motion, featherless

Subscribers: featherless

Tags: #material_motion

Differential Revision: http://codereview.cc/D2167
  • Loading branch information
Mark Wei committed Dec 8, 2016
1 parent 02902b7 commit 50afe0c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void unsubscribe() {
}
});

final Subscription subscription = observable
MotionObservable<CharSequence> stream = observable
.filter(new MotionObservable.Predicate<String>() {

@Override
Expand All @@ -92,7 +92,9 @@ public CharSequence transform(String value) {
return italicizeAndCapitalize(value);
}
})
.write(text, TEXT_PROPERTY)
.write(text, TEXT_PROPERTY);

final Subscription subscription = stream
.subscribe(new MotionObserver<CharSequence>() {

@Override
Expand Down

0 comments on commit 50afe0c

Please sign in to comment.