mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
feat(YouTube Music/Hide layout components): add Hide settings menu
setting https://github.com/inotia00/ReVanced_Extended/issues/1899
This commit is contained in:
@ -31,6 +31,7 @@ import app.revanced.patches.music.utils.resourceid.SharedResourceIdPatch.TopBarM
|
||||
import app.revanced.patches.music.utils.settings.CategoryType
|
||||
import app.revanced.patches.music.utils.settings.SettingsPatch
|
||||
import app.revanced.patches.shared.litho.LithoFilterPatch
|
||||
import app.revanced.patches.shared.settingmenu.SettingsMenuPatch
|
||||
import app.revanced.util.getTargetIndexOrThrow
|
||||
import app.revanced.util.getTargetIndexWithMethodReferenceNameOrThrow
|
||||
import app.revanced.util.getWideLiteralInstructionIndex
|
||||
@ -48,6 +49,7 @@ object LayoutComponentsPatch : BaseBytecodePatch(
|
||||
dependencies = setOf(
|
||||
LithoFilterPatch::class,
|
||||
SharedResourceIdPatch::class,
|
||||
SettingsMenuPatch::class,
|
||||
SettingsPatch::class
|
||||
),
|
||||
compatiblePackages = COMPATIBLE_PACKAGE,
|
||||
@ -295,6 +297,16 @@ object LayoutComponentsPatch : BaseBytecodePatch(
|
||||
"revanced_custom_filter_strings",
|
||||
"revanced_custom_filter"
|
||||
)
|
||||
SettingsPatch.addSwitchPreference(
|
||||
CategoryType.GENERAL,
|
||||
"revanced_hide_settings_menu",
|
||||
"false"
|
||||
)
|
||||
SettingsPatch.addPreferenceWithIntent(
|
||||
CategoryType.GENERAL,
|
||||
"revanced_hide_settings_menu_filter_strings",
|
||||
"revanced_hide_settings_menu"
|
||||
)
|
||||
SettingsPatch.addSwitchPreference(
|
||||
CategoryType.GENERAL,
|
||||
"revanced_hide_button_shelf",
|
||||
|
Reference in New Issue
Block a user