This commit is contained in:
Frans-Lukas 2020-04-10 15:20:07 +02:00
parent 58ef0de353
commit 6d82885f3c

View File

@ -44,7 +44,7 @@ internal class HistoryPresenter @Inject constructor(
{ histories: List<HistoryListItem> -> 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)
}