mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Address some build warnings
This commit is contained in:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user