diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/BasePresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/BasePresenter.kt index d80fccb1e..f6cfefc91 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/BasePresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/base/presenter/BasePresenter.kt @@ -32,6 +32,12 @@ open class BasePresenter : RxPresenter() { presenterScope.cancel() } + // We're trying to avoid using Rx, so we "undeprecate" this + @Suppress("DEPRECATION") + override fun getView(): V? { + return super.getView() + } + /** * Subscribes an observable with [deliverFirst] and adds it to the presenter's lifecycle * subscription list. diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt index f1aebb6ee..1a86c17c7 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/more/AboutController.kt @@ -167,8 +167,8 @@ class AboutController : SettingsController(), NoToolbarElevationController { ) outputDf.timeZone = TimeZone.getDefault() - buildTime.toDateTimestampString(dateFormat) - } catch (e: ParseException) { + buildTime!!.toDateTimestampString(dateFormat) + } catch (e: Exception) { BuildConfig.BUILD_TIME } } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt index c04d6045f..91ac55550 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/recent/history/HistoryController.kt @@ -30,6 +30,7 @@ import kotlinx.coroutines.flow.filter import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import reactivecircus.flowbinding.appcompat.queryTextChanges +import timber.log.Timber import uy.kohesive.injekt.injectLazy /** @@ -117,6 +118,7 @@ class HistoryController : fun onAddPageError(error: Throwable) { adapter?.onLoadMoreComplete(null) adapter?.endlessTargetCount = 1 + Timber.e(error) } override fun onUpdateEmptyView(size: Int) {