mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-02 23:52:57 +01:00
feat: use better patch descriptions
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
parent
b1bea85ce5
commit
931aa0fba6
@ -180,10 +180,10 @@ class GeneralAdsResourcePatch : ResourcePatch {
|
|||||||
),
|
),
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_adremover_info_panel",
|
"revanced_adremover_info_panel",
|
||||||
StringResource("revanced_adremover_info_panel_enabled_title", "Hide info-panels"),
|
StringResource("revanced_adremover_info_panel_enabled_title", "Hide info panels"),
|
||||||
true,
|
true,
|
||||||
StringResource("revanced_adremover_info_panel_enabled_summary_on", "Info-panels are hidden"),
|
StringResource("revanced_adremover_info_panel_enabled_summary_on", "Info panels are hidden"),
|
||||||
StringResource("revanced_adremover_info_panel_enabled_summary_off", "Info-panels are shown")
|
StringResource("revanced_adremover_info_panel_enabled_summary_off", "Info panels are shown")
|
||||||
),
|
),
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_adremover_medical_panel",
|
"revanced_adremover_medical_panel",
|
||||||
|
@ -34,10 +34,10 @@ class AutoCaptionsPatch : BytecodePatch(
|
|||||||
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_autocaptions_enabled",
|
"revanced_autocaptions_enabled",
|
||||||
StringResource("revanced_autocaptions_enabled_title", "Disable auto-captions"),
|
StringResource("revanced_autocaptions_enabled_title", "Disable auto captions"),
|
||||||
false,
|
false,
|
||||||
StringResource("revanced_autocaptions_summary_on", "Auto-captions are disabled"),
|
StringResource("revanced_autocaptions_summary_on", "Auto captions are disabled"),
|
||||||
StringResource("revanced_autocaptions_summary_off", "Auto-captions are enabled")
|
StringResource("revanced_autocaptions_summary_off", "Auto captions are enabled")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -44,11 +44,11 @@ class HidePlayerButtonsPatch : BytecodePatch(
|
|||||||
false,
|
false,
|
||||||
StringResource(
|
StringResource(
|
||||||
"revanced_hide_player_buttons_summary_on",
|
"revanced_hide_player_buttons_summary_on",
|
||||||
"The buttons are hidden"
|
"Buttons are hidden"
|
||||||
),
|
),
|
||||||
StringResource(
|
StringResource(
|
||||||
"revanced_hide_player_buttons_summary_off",
|
"revanced_hide_player_buttons_summary_off",
|
||||||
"The buttons are shown"
|
"Buttons are shown"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
@ -28,10 +28,10 @@ class HideEndscreenCardsResourcePatch : ResourcePatch {
|
|||||||
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_hide_endscreen_cards",
|
"revanced_hide_endscreen_cards",
|
||||||
StringResource("revanced_hide_endscreen_cards_title", "Hide end-screen cards"),
|
StringResource("revanced_hide_endscreen_cards_title", "Hide end screen cards"),
|
||||||
true,
|
true,
|
||||||
StringResource("revanced_hide_endscreen_cards_summary_on", "End-screen cards are hidden"),
|
StringResource("revanced_hide_endscreen_cards_summary_on", "End screen cards are hidden"),
|
||||||
StringResource("revanced_hide_endscreen_cards_summary_off", "End-screen cards are shown")
|
StringResource("revanced_hide_endscreen_cards_summary_off", "End screen cards are shown")
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -13,6 +13,8 @@ import app.revanced.patcher.patch.PatchResultSuccess
|
|||||||
import app.revanced.patcher.patch.annotations.DependsOn
|
import app.revanced.patcher.patch.annotations.DependsOn
|
||||||
import app.revanced.patcher.patch.annotations.Patch
|
import app.revanced.patcher.patch.annotations.Patch
|
||||||
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
|
import app.revanced.patcher.util.proxy.mutableTypes.MutableMethod
|
||||||
|
import app.revanced.patches.shared.settings.preference.impl.StringResource
|
||||||
|
import app.revanced.patches.shared.settings.preference.impl.SwitchPreference
|
||||||
import app.revanced.patches.youtube.layout.tabletminiplayer.annotations.TabletMiniPlayerCompatibility
|
import app.revanced.patches.youtube.layout.tabletminiplayer.annotations.TabletMiniPlayerCompatibility
|
||||||
import app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints.MiniPlayerDimensionsCalculatorFingerprint
|
import app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints.MiniPlayerDimensionsCalculatorFingerprint
|
||||||
import app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints.MiniPlayerOverrideFingerprint
|
import app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints.MiniPlayerOverrideFingerprint
|
||||||
@ -20,8 +22,6 @@ import app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints.MiniPla
|
|||||||
import app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints.MiniPlayerResponseModelSizeCheckFingerprint
|
import app.revanced.patches.youtube.layout.tabletminiplayer.fingerprints.MiniPlayerResponseModelSizeCheckFingerprint
|
||||||
import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
|
import app.revanced.patches.youtube.misc.integrations.patch.IntegrationsPatch
|
||||||
import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch
|
import app.revanced.patches.youtube.misc.settings.bytecode.patch.SettingsPatch
|
||||||
import app.revanced.patches.shared.settings.preference.impl.StringResource
|
|
||||||
import app.revanced.patches.shared.settings.preference.impl.SwitchPreference
|
|
||||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||||
|
|
||||||
@Patch
|
@Patch
|
||||||
@ -40,10 +40,10 @@ class TabletMiniPlayerPatch : BytecodePatch(
|
|||||||
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
SettingsPatch.PreferenceScreen.LAYOUT.addPreferences(
|
||||||
SwitchPreference(
|
SwitchPreference(
|
||||||
"revanced_tablet_miniplayer",
|
"revanced_tablet_miniplayer",
|
||||||
StringResource("revanced_tablet_miniplayer_title", "Enable the tablet Mini-player"),
|
StringResource("revanced_tablet_miniplayer_title", "Enable tablet mini player"),
|
||||||
false,
|
false,
|
||||||
StringResource("revanced_tablet_miniplayer_summary_on", "Tablet Mini-player is enabled"),
|
StringResource("revanced_tablet_miniplayer_summary_on", "Mini player is enabled"),
|
||||||
StringResource("revanced_tablet_miniplayer_summary_off", "Tablet Mini-player is disabled")
|
StringResource("revanced_tablet_miniplayer_summary_off", "Mini player is disabled")
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user