1 package com.moiseum.wolnelektury.base.mvp;
3 import android.os.Bundle;
4 import android.support.annotation.CallSuper;
6 import io.reactivex.disposables.CompositeDisposable;
7 import io.reactivex.disposables.Disposable;
9 public abstract class LifecyclePresenter {
11 private CompositeDisposable disposables = new CompositeDisposable();
13 public void onCreate(Bundle savedInstanceState) {
16 public void onStart() {
19 public void onStop() {
22 public void onResume() {
25 public void onPause() {
29 public void onDestroy() {
30 disposables.dispose();
33 public void onSaveInstanceState(Bundle outState) {
36 protected void addDisposable(Disposable disposable) {
37 disposables.add(disposable);