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() 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 * Subscribes an observable with [deliverFirst] and adds it to the presenter's lifecycle
* subscription list. * subscription list.

View File

@ -167,8 +167,8 @@ class AboutController : SettingsController(), NoToolbarElevationController {
) )
outputDf.timeZone = TimeZone.getDefault() outputDf.timeZone = TimeZone.getDefault()
buildTime.toDateTimestampString(dateFormat) buildTime!!.toDateTimestampString(dateFormat)
} catch (e: ParseException) { } catch (e: Exception) {
BuildConfig.BUILD_TIME BuildConfig.BUILD_TIME
} }
} }

View File

@ -30,6 +30,7 @@ import kotlinx.coroutines.flow.filter
import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.onEach
import reactivecircus.flowbinding.appcompat.queryTextChanges import reactivecircus.flowbinding.appcompat.queryTextChanges
import timber.log.Timber
import uy.kohesive.injekt.injectLazy import uy.kohesive.injekt.injectLazy
/** /**
@ -117,6 +118,7 @@ class HistoryController :
fun onAddPageError(error: Throwable) { fun onAddPageError(error: Throwable) {
adapter?.onLoadMoreComplete(null) adapter?.onLoadMoreComplete(null)
adapter?.endlessTargetCount = 1 adapter?.endlessTargetCount = 1
Timber.e(error)
} }
override fun onUpdateEmptyView(size: Int) { override fun onUpdateEmptyView(size: Int) {