This repository was archived by the owner on Aug 9, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/rx_activity_result2 Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22apply plugin : ' com.github.dcendents.android-maven'
33group= ' com.github.VictorAlbertos'
4- version= ' 0.4.1 -2.x'
4+ version= ' 0.4.4 -2.x'
55
66android {
77 compileSdkVersion 25
@@ -28,3 +28,9 @@ dependencies {
2828
2929 testCompile ' junit:junit:4.12'
3030}
31+
32+ install {
33+ repositories. mavenInstaller {
34+ pom. artifactId = ' RxActivityResult'
35+ }
36+ }
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ Fragment getTargetFragment(List<Fragment> fragments) {
161161 for (Fragment fragment : fragments ) {
162162 if (fragment != null && fragment .isVisible () && fragment .getClass () == clazz ) {
163163 return fragment ;
164- } else if (fragment != null && fragment .getChildFragmentManager () != null ) {
164+ } else if (fragment != null && fragment .isAdded () && fragment . getChildFragmentManager () != null ) {
165165 List <Fragment > childFragments = fragment .getChildFragmentManager ().getFragments ();
166166 Fragment candidate = getTargetFragment (childFragments );
167167 if (candidate != null ) return candidate ;
You can’t perform that action at this time.
0 commit comments