Address some build warnings

This commit is contained in:
arkon 2021-06-02 23:17:41 -04:00
parent db25a9ae4f
commit fb7a458747
3 changed files with 10 additions and 2 deletions

View file

@ -32,6 +32,12 @@ open class BasePresenter<V> : RxPresenter<V>() {
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.

View file

@ -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
}
}

View file

@ -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) {