File tree 1 file changed +2
-2
lines changed
app/src/main/java/fr/free/nrw/commons/contributions
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -307,11 +307,11 @@ public boolean onCreateOptionsMenu(Menu menu) {
307
307
308
308
@ SuppressLint ("CheckResult" )
309
309
private void setNotificationCount () {
310
- Observable .fromCallable (() -> notificationController .getNotifications (false ))
310
+ compositeDisposable . add ( Observable .fromCallable (() -> notificationController .getNotifications (false ))
311
311
.subscribeOn (Schedulers .io ())
312
312
.observeOn (AndroidSchedulers .mainThread ())
313
313
.subscribe (this ::initNotificationViews ,
314
- throwable -> Timber .e (throwable , "Error occurred while loading notifications" ));
314
+ throwable -> Timber .e (throwable , "Error occurred while loading notifications" ))) ;
315
315
}
316
316
317
317
private void initNotificationViews (List <Notification > notificationList ) {
You can’t perform that action at this time.
0 commit comments