Search in sources :

Example 81 with CompositeDisposable

use of io.reactivex.disposables.CompositeDisposable in project seven_develop by seven123456.

the class RxLifeManager method setCompositeDisposableOnStop.

public void setCompositeDisposableOnStop(@NonNull Disposable s) {
    if (compositeDisposableOnStop != null) {
        compositeDisposableOnStop.add(s);
    } else {
        compositeDisposableOnStop = new CompositeDisposable();
        compositeDisposableOnStop.add(s);
    }
}
Also used : CompositeDisposable(io.reactivex.disposables.CompositeDisposable)

Aggregations

CompositeDisposable (io.reactivex.disposables.CompositeDisposable)81 Nullable (android.support.annotation.Nullable)15 Test (org.junit.Test)11 Bundle (android.os.Bundle)10 View (android.view.View)10 Consumer (io.reactivex.functions.Consumer)10 TimeUnit (java.util.concurrent.TimeUnit)10 Flowable (io.reactivex.Flowable)9 NonNull (android.support.annotation.NonNull)8 TextUtils (android.text.TextUtils)7 ViewGroup (android.view.ViewGroup)7 AndroidSchedulers (io.reactivex.android.schedulers.AndroidSchedulers)7 TextView (android.widget.TextView)6 BindView (butterknife.BindView)6 ArrayList (java.util.ArrayList)6 List (java.util.List)6 Intent (android.content.Intent)5 LayoutInflater (android.view.LayoutInflater)5 Task (bolts.Task)5 TaskCompletionSource (bolts.TaskCompletionSource)5