diff --git a/api/revanced-patches.api b/api/revanced-patches.api index f48df28a76..a8eec7b131 100644 --- a/api/revanced-patches.api +++ b/api/revanced-patches.api @@ -1832,14 +1832,14 @@ public final class app/revanced/patches/youtube/layout/searchbar/WideSearchbarPa public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V } -public final class app/revanced/patches/youtube/layout/seekbar/FullscreenSeekbarThumbnailsPatch : app/revanced/patcher/patch/BytecodePatch { - public static final field INSTANCE Lapp/revanced/patches/youtube/layout/seekbar/FullscreenSeekbarThumbnailsPatch; +public final class app/revanced/patches/youtube/layout/seekbar/RestoreOldSeekbarThumbnailsPatch : app/revanced/patcher/patch/BytecodePatch { + public static final field INSTANCE Lapp/revanced/patches/youtube/layout/seekbar/RestoreOldSeekbarThumbnailsPatch; public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V } -public final class app/revanced/patches/youtube/layout/seekbar/RestoreOldSeekbarThumbnailsPatch : app/revanced/patcher/patch/BytecodePatch { - public static final field INSTANCE Lapp/revanced/patches/youtube/layout/seekbar/RestoreOldSeekbarThumbnailsPatch; +public final class app/revanced/patches/youtube/layout/seekbar/SeekbarThumbnailsPatch : app/revanced/patcher/patch/BytecodePatch { + public static final field INSTANCE Lapp/revanced/patches/youtube/layout/seekbar/SeekbarThumbnailsPatch; public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V } diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/FullscreenSeekbarThumbnailsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/SeekbarThumbnailsPatch.kt similarity index 80% rename from src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/FullscreenSeekbarThumbnailsPatch.kt rename to src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/SeekbarThumbnailsPatch.kt index d91a22a601..dd678bbf54 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/FullscreenSeekbarThumbnailsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/seekbar/SeekbarThumbnailsPatch.kt @@ -14,7 +14,7 @@ import app.revanced.patches.youtube.misc.settings.SettingsPatch import app.revanced.util.resultOrThrow @Patch( - name = "Fullscreen seekbar thumbnails", + name = "Seekbar thumbnails", description = "Adds an option to use high quality fullscreen seekbar thumbnails.", dependencies = [IntegrationsPatch::class, AddResourcesPatch::class, VersionCheckPatch::class], compatiblePackages = [ @@ -30,22 +30,24 @@ import app.revanced.util.resultOrThrow ] ) @Suppress("unused") -object FullscreenSeekbarThumbnailsPatch : BytecodePatch( +object SeekbarThumbnailsPatch : BytecodePatch( setOf(FullscreenSeekbarThumbnailsQualityFingerprint) ) { private const val INTEGRATIONS_CLASS_DESCRIPTOR = - "Lapp/revanced/integrations/youtube/patches/FullscreenSeekbarThumbnailsPatch;" + "Lapp/revanced/integrations/youtube/patches/SeekbarThumbnailsPatch;" override fun execute(context: BytecodeContext) { AddResourcesPatch(this::class) SettingsPatch.PreferenceScreen.SEEKBAR.addPreferences( if (!VersionCheckPatch.is_19_17_or_greater) { - SwitchPreference( key = "revanced_seekbar_fullscreen_high_quality", - summaryOnKey = "revanced_seekbar_fullscreen_high_quality_legacy_summary_on", - summaryOffKey = "revanced_seekbar_fullscreen_high_quality_legacy_summary_on") + SwitchPreference( + key = "revanced_seekbar_thumbnails_high_quality", + summaryOnKey = "revanced_seekbar_thumbnails_high_quality_legacy_summary_on", + summaryOffKey = "revanced_seekbar_thumbnails_high_quality_legacy_summary_on" + ) } else { - SwitchPreference("revanced_seekbar_fullscreen_high_quality") + SwitchPreference("revanced_seekbar_thumbnails_high_quality") } ) diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index 8b5c7d3065..b02feeed97 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -762,12 +762,12 @@ This is because Crowdin requires temporarily flattening this file and removing t Wide search bar is enabled Wide search bar is disabled - - Enable high quality thumbnails - Seekbar thumbnails are high quality - Seekbar thumbnails are medium quality - Fullscreen seekbar thumbnails are high quality - Fullscreen seekbar thumbnails are medium quality + + Enable high quality thumbnails + Seekbar thumbnails are high quality + Seekbar thumbnails are medium quality + Fullscreen seekbar thumbnails are high quality + Fullscreen seekbar thumbnails are medium quality Restore old seekbar thumbnails