mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-05 03:52:54 +01:00
fix: default values for settings
This commit is contained in:
parent
bd017045eb
commit
9025844a88
@ -73,11 +73,11 @@ class GeneralBytecodeAdsPatch : BytecodePatch() {
|
|||||||
override fun execute(data: BytecodeData): PatchResult {
|
override fun execute(data: BytecodeData): PatchResult {
|
||||||
SettingsPatch.PreferenceScreen.ADS.addPreferences(
|
SettingsPatch.PreferenceScreen.ADS.addPreferences(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_home_ads_enabled",
|
"revanced_home_ads_removal",
|
||||||
StringResource("revanced_home_ads_enabled_title", "Hide home ads"),
|
StringResource("revanced_home_ads_removal_title", "Remove home ads"),
|
||||||
true,
|
true,
|
||||||
StringResource("revanced_home_ads_enabled_summary_on", "Home ads are shown"),
|
StringResource("revanced_home_ads_removal_summary_on", "Home ads are hidden"),
|
||||||
StringResource("revanced_home_ads_enabled_summary_off", "Home ads are hidden")
|
StringResource("revanced_home_ads_removal_summary_off", "Home ads are shown")
|
||||||
),
|
),
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_adremover_ad_removal",
|
"revanced_adremover_ad_removal",
|
||||||
|
@ -33,11 +33,11 @@ class VideoAdsPatch : BytecodePatch(
|
|||||||
override fun execute(data: BytecodeData): PatchResult {
|
override fun execute(data: BytecodeData): PatchResult {
|
||||||
SettingsPatch.PreferenceScreen.ADS.addPreferences(
|
SettingsPatch.PreferenceScreen.ADS.addPreferences(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_video_ads_enabled",
|
"revanced_video_ads_removal",
|
||||||
StringResource("revanced_video_ads_enabled_title", "Hide video ads"),
|
StringResource("revanced_video_ads_removal_title", "Hide video ads"),
|
||||||
true,
|
true,
|
||||||
StringResource("revanced_video_ads_enabled_summary_on", "Video ads are hidden"),
|
StringResource("revanced_video_ads_removal_summary_on", "Video ads are hidden"),
|
||||||
StringResource("revanced_video_ads_enabled_summary_off", "Video ads are shown")
|
StringResource("revanced_video_ads_removal_summary_off", "Video ads are shown")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@ class CreateButtonRemoverPatch : BytecodePatch(
|
|||||||
"revanced_create_button_enabled",
|
"revanced_create_button_enabled",
|
||||||
StringResource("revanced_create_button_enabled_title", "Show create button"),
|
StringResource("revanced_create_button_enabled_title", "Show create button"),
|
||||||
false,
|
false,
|
||||||
StringResource("revanced_create_button_summary_on", "Create button is shown."),
|
StringResource("revanced_create_button_summary_on", "Create button is shown"),
|
||||||
StringResource("revanced_create_button_summary_off", "Create button is hidden.")
|
StringResource("revanced_create_button_summary_off", "Create button is hidden")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user