Last active
February 18, 2018 15:06
-
-
Save muthuraj57/941e4730d5e1da4221741e7d73b7534d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.support.annotation.CallSuper | |
open class BaseViewModel{ | |
protected val compositeDisposable = CompositeDisposable() | |
fun onAttach(){} | |
@CallSuper | |
fun onDetach(){ | |
compositeDisposable.clear() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment