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)
Unintended behavior
View staffing
Description
Component used: androidx.leanback:leanback Version used: 1.2.0-alpha04
I haven't gone through the rest but
onInflateTitleView
documentation / code needs to be updated.Here:https://developer.android.com/reference/androidx/leanback/app/BrandedSupportFragment#onInflateTitleView(android.view.LayoutInflater,android.view.ViewGroup,android.os.Bundle) the documentation states:
null for no title view
However the method is declared as @NonNull.
This also raises a compile time error with the Kotlin-code at least (I haven't checked with Java class).
So, for consistency either the method return value should be declared as
@Nullable
or the documentation needs to be updated.I propose to update the code and mark the method as
@Nullable
since the intended behaviour is well defined in both the documentation and the current implementation ofBrandedSupportFragment
making a nullable title a valid usecase.Leanback version:
androidx.leanback:leanback:1.2.0-alpha04