mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
No need to return the disposable, it is never used
This commit is contained in:
parent
31984a57d6
commit
9e1c30ec5d
2 changed files with 2 additions and 4 deletions
|
@ -162,9 +162,8 @@ abstract class VectorBaseActivity : AppCompatActivity(), HasScreenInjector {
|
|||
return this
|
||||
}
|
||||
|
||||
protected fun Disposable.disposeOnDestroy(): Disposable {
|
||||
protected fun Disposable.disposeOnDestroy() {
|
||||
uiDisposables.add(this)
|
||||
return this
|
||||
}
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
|
|
|
@ -234,9 +234,8 @@ abstract class VectorBaseFragment : BaseMvRxFragment(), HasScreenInjector {
|
|||
|
||||
private val uiDisposables = CompositeDisposable()
|
||||
|
||||
protected fun Disposable.disposeOnDestroyView(): Disposable {
|
||||
protected fun Disposable.disposeOnDestroyView() {
|
||||
uiDisposables.add(this)
|
||||
return this
|
||||
}
|
||||
|
||||
/* ==========================================================================================
|
||||
|
|
Loading…
Reference in a new issue