Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Component used: Fragment Version used: 1.3.0-alpha06
It was common practice, particularly in b/117894767 which was only fixed in Fragment 1.2.3 .
DialogFragment
, to useLayoutInflater.from(context)
(orrequireContext()
, etc) to get aLayoutInflater
instance due toUsing the correct
LayoutInflater
is critical to inflating fragments from XML into the rightFragmentManager
(either viaFragmentContainerView
or<fragment>
).It would be nice if a Lint check would run against all Fragment classes that would replace any calls to
LayoutInflater.from()
withgetLayoutInflater()
/layoutInflater
, ensuring that the correctLayoutInflater
is used.