Skip to content

Commit 26050d8

Browse files
committed
VideoPlayerUi: suppress warnings
The `R.id` link from the comment cannot be resolved, so let’s not link it for now. We are using some exoplayer2 resources, let’s silence the warning.
1 parent 0b32738 commit 26050d8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/player/ui/VideoPlayerUi.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import static org.schabi.newpipe.player.helper.PlayerHelper.nextResizeModeAndSaveToPrefs;
1717
import static org.schabi.newpipe.player.helper.PlayerHelper.retrieveSeekDurationFromPreferences;
1818

19+
import android.annotation.SuppressLint;
1920
import android.content.Intent;
2021
import android.content.res.Resources;
2122
import android.graphics.Bitmap;
@@ -761,7 +762,7 @@ public boolean isFullscreen() {
761762
}
762763

763764
/**
764-
* Update the play/pause button ({@link R.id.playPauseButton}) to reflect the action
765+
* Update the play/pause button (`R.id.playPauseButton`) to reflect the action
765766
* that will be performed when the button is clicked..
766767
* @param action the action that is performed when the play/pause button is clicked
767768
*/
@@ -947,6 +948,8 @@ public void onShuffleClicked() {
947948
player.toggleShuffleModeEnabled();
948949
}
949950

951+
// TODO: don’t reference internal exoplayer2 resources
952+
@SuppressLint("PrivateResource")
950953
@Override
951954
public void onRepeatModeChanged(@RepeatMode final int repeatMode) {
952955
super.onRepeatModeChanged(repeatMode);

0 commit comments

Comments
 (0)