Skip to content

Commit

Permalink
fix a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyaoyou1212 committed Jun 8, 2017
1 parent 26d8368 commit 8f1dcdf
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public Observable<Boolean> request(final String... permissions) {
*/
@SuppressWarnings({"WeakerAccess", "unused"})
public Observable<Permission> requestEach(final String... permissions) {
return Observable.just(null).compose(ensureEach(permissions));
return Observable.just(new Object()).compose(ensureEach(permissions));
}

private Observable<Permission> request(final Observable<?> trigger, final String... permissions) {
Expand All @@ -143,12 +143,12 @@ private Observable<?> pending(final String... permissions) {
return Observable.empty();
}
}
return Observable.just(null);
return Observable.just(new Object());
}

private Observable<?> oneOf(Observable<?> trigger, Observable<?> pending) {
if (trigger == null) {
return Observable.just(null);
return Observable.just(new Object());
}
return Observable.merge(trigger, pending);
}
Expand Down

0 comments on commit 8f1dcdf

Please sign in to comment.