mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 05:07:41 +02:00
feat(YouTube - Seekbar components): Remove Enable Cairo seekbar
setting, which is no longer needed (Enabled by default in YouTube 19.34.42)
This commit is contained in:
@ -6,13 +6,6 @@ import app.revanced.util.or
|
||||
import com.android.tools.smali.dexlib2.AccessFlags
|
||||
import com.android.tools.smali.dexlib2.Opcode
|
||||
|
||||
internal val cairoSeekbarConfigFingerprint = legacyFingerprint(
|
||||
name = "cairoSeekbarConfigFingerprint",
|
||||
returnType = "Z",
|
||||
parameters = emptyList(),
|
||||
literals = listOf(45617850L),
|
||||
)
|
||||
|
||||
internal val controlsOverlayStyleFingerprint = legacyFingerprint(
|
||||
name = "controlsOverlayStyleFingerprint",
|
||||
opcodes = listOf(Opcode.CONST_HIGH16),
|
||||
|
@ -17,7 +17,6 @@ import app.revanced.patches.youtube.utils.patch.PatchList.SEEKBAR_COMPONENTS
|
||||
import app.revanced.patches.youtube.utils.playerButtonsResourcesFingerprint
|
||||
import app.revanced.patches.youtube.utils.playerButtonsVisibilityFingerprint
|
||||
import app.revanced.patches.youtube.utils.playerSeekbarColorFingerprint
|
||||
import app.revanced.patches.youtube.utils.playservice.is_19_23_or_greater
|
||||
import app.revanced.patches.youtube.utils.playservice.versionCheckPatch
|
||||
import app.revanced.patches.youtube.utils.resourceid.inlineTimeBarColorizedBarPlayedColorDark
|
||||
import app.revanced.patches.youtube.utils.resourceid.inlineTimeBarPlayedNotHighlightedColor
|
||||
@ -303,19 +302,6 @@ val seekbarComponentsPatch = bytecodePatch(
|
||||
|
||||
// endregion
|
||||
|
||||
// region patch for enable cairo seekbar
|
||||
|
||||
if (is_19_23_or_greater) {
|
||||
cairoSeekbarConfigFingerprint.injectLiteralInstructionBooleanCall(
|
||||
45617850L,
|
||||
"$PLAYER_CLASS_DESCRIPTOR->enableCairoSeekbar()Z"
|
||||
)
|
||||
|
||||
settingArray += "SETTINGS: ENABLE_CAIRO_SEEKBAR"
|
||||
}
|
||||
|
||||
// endregion
|
||||
|
||||
// region add settings
|
||||
|
||||
addPreference(settingArray, SEEKBAR_COMPONENTS)
|
||||
|
Reference in New Issue
Block a user