Suppress lint in PlayerControlView and TrackSelectionDialogBuilder

PiperOrigin-RevId: 569165562
This commit is contained in:
ibaker 2023-09-28 06:45:55 -07:00 committed by Copybara-Service
parent db26b378f8
commit d716de02aa
2 changed files with 7 additions and 0 deletions

View File

@ -361,7 +361,10 @@ public class PlayerControlView extends FrameLayout {
this(context, attrs, defStyleAttr, attrs);
}
// TODO: b/301602565 - See if there's a reasonable non-null root view group we could use below to
// resolve InflateParams lint.
@SuppressWarnings({
"InflateParams",
"nullness:argument",
"nullness:assignment",
"nullness:method.invocation",

View File

@ -253,6 +253,8 @@ public final class TrackSelectionDialogBuilder {
// Inflate with the builder's context to ensure the correct style is used.
LayoutInflater dialogInflater = LayoutInflater.from(builder.getContext());
// TODO: b/301602565 - See if there's a reasonable non-null root view group we could use here.
@SuppressWarnings("InflateParams")
View dialogView = dialogInflater.inflate(R.layout.exo_track_selection_dialog, /* root= */ null);
Dialog.OnClickListener okClickListener = setUpDialogView(dialogView);
@ -278,6 +280,8 @@ public final class TrackSelectionDialogBuilder {
// Inflate with the builder's context to ensure the correct style is used.
Context builderContext = (Context) builderClazz.getMethod("getContext").invoke(builder);
LayoutInflater dialogInflater = LayoutInflater.from(builderContext);
// TODO: b/301602565 - See if there's a reasonable non-null root view group we could use here.
@SuppressWarnings("InflateParams")
View dialogView =
dialogInflater.inflate(R.layout.exo_track_selection_dialog, /* root= */ null);
Dialog.OnClickListener okClickListener = setUpDialogView(dialogView);