diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/navigation/shortsnavbar/patch/ShortsNavBarPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/navigation/shortsnavbar/patch/ShortsNavBarPatch.kt index 0720951fb..5c2f32316 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/navigation/shortsnavbar/patch/ShortsNavBarPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/navigation/shortsnavbar/patch/ShortsNavBarPatch.kt @@ -47,14 +47,11 @@ class ShortsNavBarPatch : BytecodePatch( with (it.mutableMethod) { val startIndex = it.scanResult.patternScanResult!!.startIndex val instructions = implementation!!.instructions - - val indexReference = ((instructions[startIndex] as ReferenceInstruction).reference as DexBackedTypeReference).toString() - if (indexReference != targetReference) return SetPivotBarFingerprint.toErrorResult() val register = (instructions[startIndex] as OneRegisterInstruction).registerA addInstruction( startIndex + 1, - "sput-object v$register, $NAVIGATION->pivotbar:$targetReference" + "sput-object v$register, $NAVIGATION->pivotBar:Ljava/lang/Object;" ) } } ?: return SetPivotBarFingerprint.toErrorResult() @@ -119,9 +116,4 @@ class ShortsNavBarPatch : BytecodePatch( return PatchResultSuccess() } - - private companion object { - const val targetReference = - "Lcom/google/android/apps/youtube/app/ui/pivotbar/PivotBar;" - } } \ No newline at end of file