From 4cc8a22c26c20164d88bff8953d1de53e2041753 Mon Sep 17 00:00:00 2001 From: OxrxL <108184954+OxrxL@users.noreply.github.com> Date: Wed, 28 Sep 2022 13:28:19 +0200 Subject: [PATCH] feat: `hide-email-address` patch (#149) Co-authored-by: oSumAtrIX --- .../integrations/patches/HideEmailAddressPatch.java | 10 ++++++++++ .../revanced/integrations/settings/SettingsEnum.java | 1 + 2 files changed, 11 insertions(+) create mode 100644 app/src/main/java/app/revanced/integrations/patches/HideEmailAddressPatch.java diff --git a/app/src/main/java/app/revanced/integrations/patches/HideEmailAddressPatch.java b/app/src/main/java/app/revanced/integrations/patches/HideEmailAddressPatch.java new file mode 100644 index 0000000000..1ceb4cd0db --- /dev/null +++ b/app/src/main/java/app/revanced/integrations/patches/HideEmailAddressPatch.java @@ -0,0 +1,10 @@ +package app.revanced.integrations.patches; + +import app.revanced.integrations.settings.SettingsEnum; + +public class HideEmailAddressPatch { + //Used by app.revanced.patches.youtube.layout.personalinformation.patch.HideEmailAddressPatch + public static boolean hideEmailAddress() { + return SettingsEnum.HIDE_EMAIL_ADDRESS.getBoolean(); + } +} diff --git a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java index 56e7211ade..59d4cb9b85 100644 --- a/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java +++ b/app/src/main/java/app/revanced/integrations/settings/SettingsEnum.java @@ -59,6 +59,7 @@ public enum SettingsEnum { FULLSCREEN_PANELS_SHOWN("revanced_fullscreen_panels_enabled", false, ReturnType.BOOLEAN), //ToDo: Add to prefs PLAYER_POPUP_PANELS("revanced_player_popup_panels_enabled", false, ReturnType.BOOLEAN), HIDE_TIME_AND_SEEKBAR("revanced_hide_time_and_seekbar", false, ReturnType.BOOLEAN), + HIDE_EMAIL_ADDRESS("revanced_hide_email_address", true, ReturnType.BOOLEAN), //Misc. Settings CAPTIONS_ENABLED("revanced_autocaptions_enabled", false, ReturnType.BOOLEAN, false),