tbruyelle / RxPermissions

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

can`t use for sdk-23? #238

Open zealforyou opened 6 years ago

zealforyou commented 6 years ago

fragmentManager.beginTransaction().add(rxPermissionsFragment, TAG).commitNow(); app will be crashed where execute this line,Please make a low version compatibility . thanks!!

mrArtCore commented 6 years ago

Hi! Describe problem properly, give full stack trace and steps to reproduce first, please.

epool commented 6 years ago

@zealforyou NOTE: new RxPermissions(this) the this parameter can be an Activity or a Fragment. If you are using RxPermissions inside of a fragment you should pass the fragment instance(new RxPermissions(this)) as constructor parameter rather than new RxPermissions(fragment.getActivity()) or you could face a java.lang.IllegalStateException: FragmentManager is already executing transactions.

Please provide more information and stacktrace of the error if possible.