This commit is contained in:
inorichi 2018-04-30 18:31:31 +02:00
parent f8a03226ee
commit 8874fe973c
2 changed files with 12 additions and 2 deletions

View File

@ -120,7 +120,7 @@ dependencies {
implementation 'com.android.support:multidex:1.0.2' implementation 'com.android.support:multidex:1.0.2'
standardImplementation 'com.google.firebase:firebase-core:12.0.1' standardImplementation 'com.google.firebase:firebase-core:11.8.0'
// ReactiveX // ReactiveX
implementation 'io.reactivex:rxandroid:1.2.1' implementation 'io.reactivex:rxandroid:1.2.1'
@ -155,7 +155,7 @@ dependencies {
// Job scheduling // Job scheduling
implementation 'com.evernote:android-job:1.2.4' implementation 'com.evernote:android-job:1.2.4'
implementation 'com.google.android.gms:play-services-gcm:12.0.1' implementation 'com.google.android.gms:play-services-gcm:11.8.0'
// Changelog // Changelog
implementation 'com.github.gabrielemariotti.changeloglib:changelog:2.1.0' implementation 'com.github.gabrielemariotti.changeloglib:changelog:2.1.0'

View File

@ -1,11 +1,21 @@
package eu.kanade.tachiyomi.ui.base.presenter package eu.kanade.tachiyomi.ui.base.presenter
import android.os.Bundle
import nucleus.presenter.RxPresenter import nucleus.presenter.RxPresenter
import nucleus.presenter.delivery.Delivery import nucleus.presenter.delivery.Delivery
import rx.Observable import rx.Observable
open class BasePresenter<V> : RxPresenter<V>() { open class BasePresenter<V> : RxPresenter<V>() {
override fun onCreate(savedState: Bundle?) {
try {
super.onCreate(savedState)
} catch (e: NullPointerException) {
// Swallow this error. This should be fixed in the library but since it's not critical
// (only used by restartables) it should be enough. It saves me a fork.
}
}
/** /**
* 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.