Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 6f5596f

Browse files
committed
fix: default values for settings
1 parent 163a51a commit 6f5596f

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

app/src/main/java/app/revanced/integrations/patches/HideHomeAdsPatch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class HideHomeAdsPatch {
1313
* @param view
1414
*/
1515
public static void HideHomeAds(View view) {
16-
if (!SettingsEnum.HOME_ADS_HIDDEN.getBoolean()) return;
16+
if (!SettingsEnum.HOME_ADS_REMOVAL.getBoolean()) return;
1717
AdRemoverAPI.HideViewWithLayout1dp(view);
1818
}
1919

app/src/main/java/app/revanced/integrations/patches/VideoAdsPatch.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
package app.revanced.integrations.patches;
22

33
import app.revanced.integrations.settings.SettingsEnum;
4-
import app.revanced.integrations.whitelist.Whitelist;
54

65
public class VideoAdsPatch {
76

87
// Used by app.revanced.patches.youtube.ad.general.video.patch.VideoAdsPatch
98
// depends on Whitelist patch (still needs to be written)
109
public static boolean shouldShowAds() {
11-
return !SettingsEnum.VIDEO_ADS_HIDDEN.getBoolean(); // TODO && Whitelist.shouldShowAds();
10+
return !SettingsEnum.VIDEO_ADS_REMOVAL.getBoolean(); // TODO && Whitelist.shouldShowAds();
1211

1312
}
1413

app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public enum SettingsEnum {
2525
ENABLE_WHITELIST("revanced_whitelist_ads_enabled", false, ReturnType.BOOLEAN),
2626

2727
//Ad settings
28-
HOME_ADS_HIDDEN("revanced_home_ads_enabled", true, ReturnType.BOOLEAN, true),
29-
VIDEO_ADS_HIDDEN("revanced_video_ads_enabled", true, ReturnType.BOOLEAN, true),
28+
HOME_ADS_REMOVAL("revanced_home_ads_removal", true, ReturnType.BOOLEAN, true),
29+
VIDEO_ADS_REMOVAL("revanced_video_ads_removal", true, ReturnType.BOOLEAN, true),
3030
ADREMOVER_AD_REMOVAL("revanced_adremover_ad_removal", true, ReturnType.BOOLEAN, true),
3131
ADREMOVER_MERCHANDISE_REMOVAL("revanced_adremover_merchandise", true, ReturnType.BOOLEAN, true),
3232
ADREMOVER_COMMUNITY_POSTS_REMOVAL("revanced_adremover_community_posts_removal", true, ReturnType.BOOLEAN, true),

0 commit comments

Comments
 (0)