Suppress lint in PlayerControlView
and TrackSelectionDialogBuilder
PiperOrigin-RevId: 569165562
This commit is contained in:
parent
db26b378f8
commit
d716de02aa
@ -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",
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user