tbruyelle / RxPermissions

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

Crash with new navigation library #358

Open SergeyMilevskiy opened 2 years ago

SergeyMilevskiy commented 2 years ago

E/FragmentManager: saveBackStack("b63fc48d-e48e-4242-bb65-16692a4ca714") must not contain retained fragments. Found retained child fragment RxPermissionsFragment{32c8fe0} (143f3c92-efcb-4ba1-ba40-11c7545ca2a9 tag=RxPermissions)

androidx.navigation:navigation-fragment-ktx:2.4.2

adevtt commented 2 years ago

I have the same issue. Is it planned to be fixed?

SergeyMilevskiy commented 2 years ago

@adevtt I migrated to this library => com.guolindev.permissionx:permissionx API is almost the same. It seems RxPermission is not supported anymore or the owner doesn't have time.

phonghoang1023 commented 2 years ago

I fixed this issue by changing new RxPermissions(this) -> new RxPermissions(requireActivity())