INNER CODE UNIT · Java
isSponsorblockEnabled
SkyTubeTeam/SkyTube · app/src/main/java/free/rm/skytube/app/Settings.java:125
public boolean isSponsorblockEnabled() {
return SkyTubeApp.getPreferenceManager().getBoolean(KEY_ENABLE_SPONSORBLOCK, false);
}
public void setSponsorblockEnabled(boolean enabled) {
setPreference(KEY_ENABLE_SPONSORBLOCK, enabled);
}
/**
* @return True if the privacy control check (i.e. the dialog offering to enable SponsorBlock
* and the Return YouTube Dislike counter) has already been run in the past.
*/
public boolean wasPrivacyControlCheckDone() {
return getPreference(PRIVACY_CONTROL_CHECK_DONE, false);
}
/**
* Marks the privacy control check as done, so it will never be run again.