mirror of
https://github.com/revanced/revanced-integrations.git
synced 2024-11-07 20:57:02 +01:00
add strings for whitelist types
This commit is contained in:
parent
f1feec008e
commit
2febb924d8
@ -1,18 +1,20 @@
|
||||
package fi.vanced.libraries.youtube.whitelisting;
|
||||
|
||||
import static pl.jakubweg.StringRef.str;
|
||||
|
||||
import pl.jakubweg.SponsorBlockSettings;
|
||||
|
||||
public enum WhitelistType {
|
||||
ADS("Ads", "youtube", "vanced_whitelist_ads_enabled"),
|
||||
SPONSORBLOCK("SponsorBlock", SponsorBlockSettings.PREFERENCES_NAME, "vanced_whitelist_sb_enabled");
|
||||
ADS("youtube", "vanced_whitelist_ads_enabled"),
|
||||
SPONSORBLOCK(SponsorBlockSettings.PREFERENCES_NAME, "vanced_whitelist_sb_enabled");
|
||||
|
||||
private final String friendlyName;
|
||||
private final String preferencesName;
|
||||
private final String sharedPreferencesName;
|
||||
private final String preferenceEnabledName;
|
||||
|
||||
WhitelistType(String friendlyName, String sharedPreferencesName, String preferenceEnabledName) {
|
||||
this.friendlyName = friendlyName;
|
||||
WhitelistType(String sharedPreferencesName, String preferenceEnabledName) {
|
||||
this.friendlyName = str("vanced_whitelisting_" + name().toLowerCase());
|
||||
this.sharedPreferencesName = sharedPreferencesName;
|
||||
this.preferencesName = "whitelist_" + name();
|
||||
this.preferenceEnabledName = preferenceEnabledName;
|
||||
|
@ -345,6 +345,8 @@
|
||||
<string name="vanced_videoadwhitelisting_title">Video ad whitelisting</string>
|
||||
<string name="vanced_videoadwhitelisting_summary_off">Video ad whitelisting is turned off</string>
|
||||
<string name="vanced_videoadwhitelisting_summary_on">Video ad whitelisting is turned on. Use the ad button under the player to whitelist a channel</string>
|
||||
<string name="vanced_whitelisting_ads">Ads</string>
|
||||
<string name="vanced_whitelisting_sponsorblock">SponsorBlock</string>
|
||||
<string name="vanced_whitelisting_added" formatted="false">Channel %s was added to the %s whitelist</string>
|
||||
<string name="vanced_whitelisting_removed" formatted="false">Channel %s was removed from the %s whitelist</string>
|
||||
<string name="vanced_whitelisting_add_failed" formatted="false">Failed to add channel %s to the %s whitelist</string>
|
||||
|
Loading…
Reference in New Issue
Block a user