diff --git a/app/src/main/java/app/revanced/integrations/patches/HidePlayerOverlayPatch.java b/app/src/main/java/app/revanced/integrations/patches/HidePlayerOverlayPatch.java new file mode 100644 index 00000000..e734fb24 --- /dev/null +++ b/app/src/main/java/app/revanced/integrations/patches/HidePlayerOverlayPatch.java @@ -0,0 +1,12 @@ +package app.revanced.integrations.patches; + +import android.widget.ImageView; + +import app.revanced.integrations.settings.SettingsEnum; + +public class HidePlayerOverlayPatch { + public static void hidePlayerOverlay(ImageView view) { + if (!SettingsEnum.HIDE_PLAYER_OVERLAY.getBoolean()) return; + view.setImageResource(android.R.color.transparent); + } +}