mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-13 20:48:56 +01:00
More crash fixes
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
package eu.kanade.tachiyomi.event
|
||||
|
||||
class ChapterCountEvent(val count: Int)
|
||||
import rx.Observable
|
||||
import rx.subjects.BehaviorSubject
|
||||
|
||||
class ChapterCountEvent() {
|
||||
|
||||
private val subject = BehaviorSubject.create<Int>()
|
||||
|
||||
val observable: Observable<Int>
|
||||
get() = subject
|
||||
|
||||
fun emit(count: Int) {
|
||||
subject.onNext(count)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user