feat(twitch/block-embedded-ads): block-embedded-ads patch (#1166)

Co-authored-by: Tim Schneeberger <tim.schneeberger@outlook.de>
This commit is contained in:
Ushie
2022-12-11 04:52:19 +01:00
committed by oSumAtrIX
co-authored by Tim Schneeberger
parent a421da53f3
commit 9af1fef0b7
9 changed files with 224 additions and 30 deletions
@@ -173,6 +173,7 @@ class SettingsPatch : BytecodePatch(
val GENERAL = CustomCategory("general", "General settings")
val OTHER = CustomCategory("other", "Other settings")
val CLIENT_SIDE = CustomCategory("client_ads", "Client-side ads")
val SURESTREAM = CustomCategory("surestream_ads", "Server-side surestream ads")
internal inner class CustomCategory(key: String, title: String) : Screen.Category(key, title) {
/* For Twitch, we need to load our CustomPreferenceCategory class instead of the default one. */