Skip to content

Commit f812f37

Browse files
committed
Add missing dispose logic.
1 parent 078234b commit f812f37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/fr/free/nrw/commons/explore/SearchActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public void setTabs() {
9898

9999
viewPagerAdapter.setTabData(fragmentList, titleList);
100100
viewPagerAdapter.notifyDataSetChanged();
101-
RxSearchView.queryTextChanges(searchView)
101+
compositeDisposable.add(RxSearchView.queryTextChanges(searchView)
102102
.takeUntil(RxView.detaches(searchView))
103103
.debounce(500, TimeUnit.MILLISECONDS)
104104
.observeOn(AndroidSchedulers.mainThread())
@@ -120,7 +120,7 @@ public void setTabs() {
120120
searchHistoryContainer.setVisibility(View.VISIBLE);
121121
}
122122
}
123-
);
123+
));
124124
}
125125

126126
/**

0 commit comments

Comments
 (0)