tbruyelle / RxPermissions

Android runtime permissions powered by RxJava2
Apache License 2.0
10.48k stars 1.31k forks source link

配合使用AutoDispose失败 #305

Closed autught closed 4 years ago

autught commented 4 years ago

如果配合AutoDispose使用的话,as(AutoDispose.autoDisposable(AndroidLifecycleScopeProvider.from(lifecycleOwner)) 之后subscribe()中的判断就不会执行

反之,则正常

autught commented 4 years ago

If used with autodispose, as (AutoDispose.autoDispose (AndroidLifecycleScopeProvider. from (lifecycleOwner))

After that, the judgment in subscribe () will not be executed

SuperXpher commented 4 years ago

Me too.

relish-wang commented 4 years ago

use this please:

.as(AutoDispose.autoDisposable(AndroidLifecycleScopeProvider.from(this, Lifecycle.Event.ON_DESTROY)))