From 5140eb36b239d00409c4761149deae1f460b1645 Mon Sep 17 00:00:00 2001 From: polymorphicshade Date: Mon, 11 Jul 2022 13:26:58 -0600 Subject: [PATCH] fixed the SponsorBlock icon in the player so it displays the correct initial image --- app/src/main/java/org/schabi/newpipe/player/Player.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index 9238d5c28..a2d395d1c 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -3145,8 +3145,6 @@ public final class Player implements updateStreamRelatedViews(); showHideKodiButton(); - setBlockSponsorsButton(binding.switchSponsorBlocking); - binding.titleTextView.setText(info.getName()); binding.channelTextView.setText(info.getUploaderName()); @@ -3188,6 +3186,8 @@ public final class Player implements ? SponsorBlockMode.ENABLED : SponsorBlockMode.DISABLED); } + + setBlockSponsorsButton(binding.switchSponsorBlocking); } private void updateMetadataWith(@NonNull final StreamInfo streamInfo) {