diff --git a/src/main/kotlin/app/revanced/patches/reddit/layout/toolbar/ToolBarButtonPatch.kt b/src/main/kotlin/app/revanced/patches/reddit/layout/toolbar/ToolBarButtonPatch.kt index 3acb9c125..e330d23eb 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/layout/toolbar/ToolBarButtonPatch.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/layout/toolbar/ToolBarButtonPatch.kt @@ -16,8 +16,9 @@ import app.revanced.util.resultOrThrow import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction @Suppress("unused") +@Deprecated("This patch is deprecated until Reddit adds a button like r/place or Reddit recap button to the toolbar.") object ToolBarButtonPatch : BaseBytecodePatch( - name = "Hide toolbar button", + // name = "Hide toolbar button", description = "Adds an option to hide the r/place or Reddit recap button in the toolbar.", dependencies = setOf( SettingsPatch::class, diff --git a/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/fingerprints/ScreenNavigatorFingerprint.kt b/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/fingerprints/ScreenNavigatorFingerprint.kt index 9892550f0..deee7c05b 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/fingerprints/ScreenNavigatorFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/misc/openlink/fingerprints/ScreenNavigatorFingerprint.kt @@ -14,6 +14,6 @@ internal object ScreenNavigatorFingerprint : MethodFingerprint( Opcode.CONST_STRING, Opcode.INVOKE_STATIC ), - strings = listOf("uri", "android.intent.action.VIEW", "com.reddit"), + strings = listOf("activity", "uri"), customFingerprint = { _, classDef -> classDef.sourceFile == "RedditScreenNavigator.kt" } ) \ No newline at end of file diff --git a/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/Constants.kt b/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/Constants.kt index 8541d7008..1b49bd38c 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/Constants.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/utils/integrations/Constants.kt @@ -2,18 +2,10 @@ package app.revanced.patches.reddit.utils.integrations import app.revanced.patcher.patch.Patch -@Suppress("MemberVisibilityCanBePrivate", "SpellCheckingInspection") +@Suppress("MemberVisibilityCanBePrivate") object Constants { const val INTEGRATIONS_PATH = "Lapp/revanced/integrations/reddit" const val PATCHES_PATH = "$INTEGRATIONS_PATH/patches" - val COMPATIBLE_PACKAGE = setOf( - Patch.CompatiblePackage( - "com.reddit.frontpage", - setOf( - "2023.12.0", - "2024.04.0" - ) - ) - ) + val COMPATIBLE_PACKAGE = setOf(Patch.CompatiblePackage("com.reddit.frontpage")) } \ No newline at end of file