<CONTEXT>.switchMap(__ -> pageChanged.startWith(0)).map(DiscoveryUtils::sortFromPosition).distinctUntilChanged();</BUG>Observable.combineLatest(params,<extra_id_0>Observable.combineLatest(params,<BUG>pagerSelectedSort,(p, s) -> p.toBuilder().sort(s).build()</BUG>).compose(bindToLifecycle()).subscribe(updateParamsForPage);</CONTEXT>
.map(NavigationDrawerData.Section.Row::params);final Observable<DiscoveryParams> params = Observable.merge(paramsFromInitialIntent,paramsFromIntent,drawerParamsClickedfinal Observable<Integer> pagerSelectedPage = pagerSetPrimaryPage.distinctUntilChanged();pagerSelectedPage.map(DiscoveryUtils::sortFromPosition),(p, s) -> p.toBuilder().sort(s).build()