From 931aa0fba631d1740986131219eff94c4c1b2306 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 22 Feb 2023 06:06:53 +0100 Subject: [PATCH] feat: use better patch descriptions Signed-off-by: oSumAtrIX --- .../general/resource/patch/GeneralAdsResourcePatch.kt | 6 +++--- .../layout/autocaptions/patch/AutoCaptionsPatch.kt | 6 +++--- .../player/hide/patch/HidePlayerButtonsPatch.kt | 4 ++-- .../resource/patch/HideEndscreenCardsResourcePatch.kt | 6 +++--- .../tabletminiplayer/patch/TabletMiniPlayerPatch.kt | 10 +++++----- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt index 8db12b6d47..3cb5ef79bb 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/ad/general/resource/patch/GeneralAdsResourcePatch.kt @@ -180,10 +180,10 @@ class GeneralAdsResourcePatch : ResourcePatch { ), SwitchPreference( "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, - 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_on", "Info panels are hidden"), + StringResource("revanced_adremover_info_panel_enabled_summary_off", "Info panels are shown") ), SwitchPreference( "revanced_adremover_medical_panel", diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt index 21941c20e5..25e3e85219 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/autocaptions/patch/AutoCaptionsPatch.kt @@ -34,10 +34,10 @@ class AutoCaptionsPatch : BytecodePatch( SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( SwitchPreference( "revanced_autocaptions_enabled", - StringResource("revanced_autocaptions_enabled_title", "Disable auto-captions"), + StringResource("revanced_autocaptions_enabled_title", "Disable auto captions"), false, - StringResource("revanced_autocaptions_summary_on", "Auto-captions are disabled"), - StringResource("revanced_autocaptions_summary_off", "Auto-captions are enabled") + StringResource("revanced_autocaptions_summary_on", "Auto captions are disabled"), + StringResource("revanced_autocaptions_summary_off", "Auto captions are enabled") ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt index 226e781b5f..1ea9cfbad5 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/buttons/player/hide/patch/HidePlayerButtonsPatch.kt @@ -44,11 +44,11 @@ class HidePlayerButtonsPatch : BytecodePatch( false, StringResource( "revanced_hide_player_buttons_summary_on", - "The buttons are hidden" + "Buttons are hidden" ), StringResource( "revanced_hide_player_buttons_summary_off", - "The buttons are shown" + "Buttons are shown" ) ) ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/resource/patch/HideEndscreenCardsResourcePatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/resource/patch/HideEndscreenCardsResourcePatch.kt index 09c21229c8..6dc3d74c59 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/resource/patch/HideEndscreenCardsResourcePatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/endscreencards/resource/patch/HideEndscreenCardsResourcePatch.kt @@ -28,10 +28,10 @@ class HideEndscreenCardsResourcePatch : ResourcePatch { SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( SwitchPreference( "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, - 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_on", "End screen cards are hidden"), + StringResource("revanced_hide_endscreen_cards_summary_off", "End screen cards are shown") ), ) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt index 6f0b2a5f15..8c4269ee20 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/tabletminiplayer/patch/TabletMiniPlayerPatch.kt @@ -13,6 +13,8 @@ import app.revanced.patcher.patch.PatchResultSuccess import app.revanced.patcher.patch.annotations.DependsOn import app.revanced.patcher.patch.annotations.Patch 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.fingerprints.MiniPlayerDimensionsCalculatorFingerprint 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.misc.integrations.patch.IntegrationsPatch 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 @Patch @@ -40,10 +40,10 @@ class TabletMiniPlayerPatch : BytecodePatch( SettingsPatch.PreferenceScreen.LAYOUT.addPreferences( SwitchPreference( "revanced_tablet_miniplayer", - StringResource("revanced_tablet_miniplayer_title", "Enable the tablet Mini-player"), + StringResource("revanced_tablet_miniplayer_title", "Enable tablet mini player"), false, - StringResource("revanced_tablet_miniplayer_summary_on", "Tablet Mini-player is enabled"), - StringResource("revanced_tablet_miniplayer_summary_off", "Tablet Mini-player is disabled") + StringResource("revanced_tablet_miniplayer_summary_on", "Mini player is enabled"), + StringResource("revanced_tablet_miniplayer_summary_off", "Mini player is disabled") ) )