diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt b/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt index a376e44cc..60f0b6d63 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/history/HistoryPresenter.kt @@ -44,7 +44,7 @@ internal class HistoryPresenter @Inject constructor( { histories: List -> view?.updateHistoryList(histories) }, { e: Throwable -> Log.e("HistoryPresenter", "Failed to load history.", e) } ) - disposable?.takeIf { !it.isDisposed }?.let { it.dispose() } + disposable?.takeIf { !it.isDisposed }?.dispose() disposable = d compositeDisposable.add(d) }