Skip to content

Commit

Permalink
yoyiyi
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyiyi committed Jul 27, 2017
1 parent fcbfaac commit 65c1ff1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/src/main/java/com/yoyiyi/soleil/base/RxPresenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ protected void unSubscribe() {
}
}

/**
* 删除
*
* @param disposable disposable
*/
protected boolean remove(Disposable disposable) {
if (mCompositeDisposable != null) {
return mCompositeDisposable.remove(disposable);
}
return false;
}

protected void addSubscribe(Disposable disposable) {
if (mCompositeDisposable == null) {
mCompositeDisposable = new CompositeDisposable();
Expand Down

0 comments on commit 65c1ff1

Please sign in to comment.