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
<CoordinatorLayout> | |
<MyView app:layout_behavior="MyBehavior" /> | |
<BottomSheet app:layout_behavior="BottomSheetBehavior"/> | |
<AppBarLayout app:layout_behavior="MyAppBarBehavior"/> | |
</CoordinatorLayout> |
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
class BasePresenter { | |
private val detachDisposable = CompositeDisposable() | |
private val destroyDisposable = CompositeDisposable() | |
fun unsubscribeOnDetach(d: Disposable) { | |
detachDisposable.add(d) | |
} | |
fun unsubscribeOnDestroy(d: Disposable) { |