diff --git a/xsnow/src/main/java/com/vise/xsnow/permission/RxPermissions.java b/xsnow/src/main/java/com/vise/xsnow/permission/RxPermissions.java index be2713b..e598b6f 100644 --- a/xsnow/src/main/java/com/vise/xsnow/permission/RxPermissions.java +++ b/xsnow/src/main/java/com/vise/xsnow/permission/RxPermissions.java @@ -121,7 +121,7 @@ public Observable request(final String... permissions) { */ @SuppressWarnings({"WeakerAccess", "unused"}) public Observable requestEach(final String... permissions) { - return Observable.just(null).compose(ensureEach(permissions)); + return Observable.just(new Object()).compose(ensureEach(permissions)); } private Observable request(final Observable trigger, final String... permissions) { @@ -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); }