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

Commit 4cc8a22

Browse files
OxrxLoSumAtrIX
andauthored
feat: hide-email-address patch (#149)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
1 parent 11fbf1a commit 4cc8a22

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package app.revanced.integrations.patches;
2+
3+
import app.revanced.integrations.settings.SettingsEnum;
4+
5+
public class HideEmailAddressPatch {
6+
//Used by app.revanced.patches.youtube.layout.personalinformation.patch.HideEmailAddressPatch
7+
public static boolean hideEmailAddress() {
8+
return SettingsEnum.HIDE_EMAIL_ADDRESS.getBoolean();
9+
}
10+
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public enum SettingsEnum {
5959
FULLSCREEN_PANELS_SHOWN("revanced_fullscreen_panels_enabled", false, ReturnType.BOOLEAN), //ToDo: Add to prefs
6060
PLAYER_POPUP_PANELS("revanced_player_popup_panels_enabled", false, ReturnType.BOOLEAN),
6161
HIDE_TIME_AND_SEEKBAR("revanced_hide_time_and_seekbar", false, ReturnType.BOOLEAN),
62+
HIDE_EMAIL_ADDRESS("revanced_hide_email_address", true, ReturnType.BOOLEAN),
6263

6364
//Misc. Settings
6465
CAPTIONS_ENABLED("revanced_autocaptions_enabled", false, ReturnType.BOOLEAN, false),

0 commit comments

Comments
 (0)