-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Compiler Warnings as Errors - WordPress Module - FragmentManager #17253
Copy link
Copy link
Description
Parent #17173
This issue is about resolving the getFragmentManager(...) and requireFragmentManager() compile warnings for the WordPress module, and possibly, for the lib modules as well.
PS: Some of those warnings are already deprecated (see here).
- This
getFragmentManager(...)method is deprecated. This has been removed in favor ofgetParentFragmentManager()which throws anIllegalStateExceptionif theFragmentManageris null. Check ifisAddedreturns false to determine if theFragmentManageris null. - This
requireFragmentManager(...)method is deprecated. This has been renamed togetParentFragmentManager()to make it clear that you are accessing theFragmentManagerthat contains this Fragment and not theFragmentManagerassociated with child Fragments.
For more info see:
Reactions are currently unavailable