mirror of
https://github.com/MaintainTeam/LastPipeBender.git
synced 2025-03-01 05:48:22 +03:00
added a null check in the subscribed call to sponsorBlockDataManager in onMetadataUpdate (#14)
This commit is contained in:
parent
f202e2af2f
commit
b2a5c05df5
1 changed files with 3 additions and 1 deletions
|
@ -1918,7 +1918,9 @@ public final class VideoDetailFragment
|
|||
? SponsorBlockMode.DISABLED
|
||||
: SponsorBlockMode.ENABLED;
|
||||
}
|
||||
player.setSponsorBlockMode(currentSponsorBlockMode);
|
||||
if (player != null) {
|
||||
player.setSponsorBlockMode(currentSponsorBlockMode);
|
||||
}
|
||||
getSponsorBlockFragment().ifPresent(
|
||||
fragment -> {
|
||||
fragment.setSponsorBlockMode(currentSponsorBlockMode);
|
||||
|
|
Loading…
Add table
Reference in a new issue