fix(android): suppress lint PrivateResource (#3531)

This commit is contained in:
Krzysztof Moch 2024-02-14 13:13:36 +01:00 committed by GitHub
parent af6aea8934
commit 38e3625541
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,6 @@
package com.brentvatne.exoplayer; package com.brentvatne.exoplayer;
import android.annotation.SuppressLint;
import android.app.Dialog; import android.app.Dialog;
import android.content.Context; import android.content.Context;
import android.view.ViewGroup; import android.view.ViewGroup;
@ -9,6 +10,7 @@ import android.widget.ImageButton;
import androidx.activity.OnBackPressedCallback; import androidx.activity.OnBackPressedCallback;
import androidx.media3.ui.LegacyPlayerControlView; import androidx.media3.ui.LegacyPlayerControlView;
@SuppressLint("PrivateResource")
public class FullScreenPlayerView extends Dialog { public class FullScreenPlayerView extends Dialog {
private final LegacyPlayerControlView playerControlView; private final LegacyPlayerControlView playerControlView;
private final ExoPlayerView exoPlayerView; private final ExoPlayerView exoPlayerView;

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources xmlns:tools="http://schemas.android.com/tools">
<style name="ExoMediaButton.FullScreen"> <style name="ExoMediaButton.FullScreen" tools:ignore="PrivateResource">
<item name="android:src">@drawable/exo_icon_fullscreen_enter</item> <item name="android:src">@drawable/exo_icon_fullscreen_enter</item>
<item name="android:contentDescription">@string/exo_controls_fullscreen_enter_description</item> <item name="android:contentDescription">@string/exo_controls_fullscreen_enter_description</item>
</style> </style>