Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 5e4b94a

Browse files
SUPERCILEXsamtstern
authored andcommitted
Accept possible dialog stacking to enable results in fragments (#199)
1 parent 51c8936 commit 5e4b94a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

easypermissions/src/main/java/pub/devrel/easypermissions/helper/SupportFragmentPermissionHelper.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ public SupportFragmentPermissionHelper(@NonNull Fragment host) {
1717

1818
@Override
1919
public FragmentManager getSupportFragmentManager() {
20-
FragmentActivity hostActivity = getHost().getActivity();
21-
if (hostActivity != null) {
22-
return hostActivity.getSupportFragmentManager();
23-
} else {
24-
return getHost().getChildFragmentManager();
25-
}
20+
return getHost().getChildFragmentManager();
2621
}
2722

2823
@Override

0 commit comments

Comments
 (0)