mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-23 02:10:44 +01:00
Move reactions into their own table.
This commit is contained in:
committed by
Cody Henthorne
parent
3a1f06f510
commit
ab55fec6bd
@@ -12,6 +12,10 @@ import io.reactivex.rxjava3.disposables.Disposable
|
||||
class LifecycleDisposable : DefaultLifecycleObserver {
|
||||
val disposables: CompositeDisposable = CompositeDisposable()
|
||||
|
||||
fun bindTo(lifecycleOwner: LifecycleOwner): LifecycleDisposable {
|
||||
return bindTo(lifecycleOwner.lifecycle)
|
||||
}
|
||||
|
||||
fun bindTo(lifecycle: Lifecycle): LifecycleDisposable {
|
||||
lifecycle.addObserver(this)
|
||||
return this
|
||||
|
||||
Reference in New Issue
Block a user