Skip to content

Commit

Permalink
npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliskov committed Apr 15, 2024
1 parent 2279217 commit 447cd25
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -98,10 +98,10 @@ public void openVideo(Video item) {
public void onVideoLoaded(Video item) {
disposeActions();

boolean enabled = mContentBlockData.isSponsorBlockEnabled() && !isChannelExcluded(item.channelId);
boolean enabled = mContentBlockData.isSponsorBlockEnabled();
getPlayer().setButtonState(R.id.action_content_block, enabled ? PlayerUI.BUTTON_ON : PlayerUI.BUTTON_OFF);

if (enabled && checkVideo(item)) {
if (enabled && checkVideo(item) && !isChannelExcluded(item.channelId)) {
updateSponsorSegmentsAndWatch(item);
}
}
Expand Down

0 comments on commit 447cd25

Please sign in to comment.