fix(youtube/open-links-directly): use better titles and correct descriptions (#1488)

This commit is contained in:
johnconner122 2023-01-15 07:57:42 +05:00 committed by GitHub
parent d3c9e03ff2
commit 2874bbef15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ import org.jf.dexlib2.iface.instruction.formats.Instruction35c
@Patch
@DependsOn([IntegrationsPatch::class, SettingsPatch::class])
@Name("open-links-directly")
@Description("Bypasses URL redirects and opens links directly inside YouTube app.")
@Description("Bypasses https://youtube.com/redirect URLs.")
@OpenLinksDirectlyCompatibility
@Version("0.0.1")
class OpenLinksDirectlyPatch : BytecodePatch(
@ -37,10 +37,10 @@ class OpenLinksDirectlyPatch : BytecodePatch(
SettingsPatch.PreferenceScreen.MISC.addPreferences(
SwitchPreference(
"revanced_uri_redirect",
StringResource("revanced_uri_redirect_title", "Open YouTube links inside app"),
StringResource("revanced_uri_redirect_title", "Bypass URL redirects"),
true,
StringResource("revanced_uri_redirect_summary_on", "Links opened inside YouTube ReVanced"),
StringResource("revanced_uri_redirect_summary_off", "Links opened in web browser")
StringResource("revanced_uri_redirect_summary_on", "Bypassing URL redirects"),
StringResource("revanced_uri_redirect_summary_off", "Following default redirect policy")
)
)