mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
chore: lint code
This commit is contained in:
@ -93,8 +93,10 @@ object PlayerFlyoutMenuPatch : BaseBytecodePatch(
|
||||
// region patch for hide '1080p Premium' label
|
||||
|
||||
VideoQualityArrayFingerprint.resultOrThrow().mutableMethod.apply {
|
||||
val qualityLabelIndex = VideoQualityArrayFingerprint.indexOfQualityLabelInstruction(this) + 1
|
||||
val qualityLabelRegister = getInstruction<OneRegisterInstruction>(qualityLabelIndex).registerA
|
||||
val qualityLabelIndex =
|
||||
VideoQualityArrayFingerprint.indexOfQualityLabelInstruction(this) + 1
|
||||
val qualityLabelRegister =
|
||||
getInstruction<OneRegisterInstruction>(qualityLabelIndex).registerA
|
||||
val jumpIndex = indexOfFirstInstructionReversedOrThrow(qualityLabelIndex) {
|
||||
opcode == Opcode.INVOKE_INTERFACE &&
|
||||
getReference<MethodReference>()?.name == "hasNext"
|
||||
|
@ -34,7 +34,7 @@ internal object VideoQualityArrayFingerprint : MethodFingerprint(
|
||||
}
|
||||
|
||||
val startsWithMethodParameterList = parameterTypes.slice(0..0)
|
||||
val endsWithMethodParameterList = parameterTypes.slice(parameterSize - 2..< parameterSize)
|
||||
val endsWithMethodParameterList = parameterTypes.slice(parameterSize - 2..<parameterSize)
|
||||
|
||||
parametersEqual(STARTS_WITH_PARAMETER_LIST, startsWithMethodParameterList) &&
|
||||
parametersEqual(ENDS_WITH_PARAMETER_LIST, endsWithMethodParameterList) &&
|
||||
|
Reference in New Issue
Block a user