mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
move disable-shorts-player-pip
to Experimental Flags
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
package app.revanced.patches.youtube.layout.general.bytecode.fingerprints
|
||||
package app.revanced.patches.youtube.extended.shortspip.bytecode.fingerprints
|
||||
|
||||
import app.revanced.patcher.extensions.or
|
||||
import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint
|
@ -1,4 +1,4 @@
|
||||
package app.revanced.patches.youtube.layout.general.bytecode.patch
|
||||
package app.revanced.patches.youtube.extended.shortspip.bytecode.patch
|
||||
|
||||
import app.revanced.patcher.annotation.Name
|
||||
import app.revanced.patcher.annotation.Version
|
||||
@ -12,11 +12,11 @@ import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.patch.annotations.DependsOn
|
||||
import app.revanced.patcher.util.smali.ExternalLabel
|
||||
import app.revanced.patches.youtube.layout.general.bytecode.fingerprints.DisableShortsPiPFingerprint
|
||||
import app.revanced.patches.youtube.extended.shortspip.bytecode.fingerprints.DisableShortsPiPFingerprint
|
||||
import app.revanced.patches.youtube.misc.playertype.patch.PlayerTypeHookPatch
|
||||
import app.revanced.shared.annotation.YouTubeCompatibility
|
||||
import app.revanced.shared.extensions.toErrorResult
|
||||
import app.revanced.shared.util.integrations.Constants.GENERAL_LAYOUT
|
||||
import app.revanced.shared.util.integrations.Constants.EXTENDED_PATH
|
||||
import org.jf.dexlib2.Opcode
|
||||
import org.jf.dexlib2.builder.instruction.BuilderInstruction35c
|
||||
import org.jf.dexlib2.iface.instruction.OneRegisterInstruction
|
||||
@ -51,7 +51,7 @@ class DisableShortsPiPBytecodePatch : BytecodePatch(
|
||||
|
||||
method.addInstructions(
|
||||
invokeIndex + 1,"""
|
||||
invoke-static {}, $GENERAL_LAYOUT->disableShortsPlayerPiP()Z
|
||||
invoke-static {}, $EXTENDED_PATH/DisableShortsPiPPatch;->disableShortsPlayerPiP()Z
|
||||
move-result v$registerA
|
||||
if-eqz v$registerA, :pip
|
||||
goto :disablepip
|
@ -1,4 +1,4 @@
|
||||
package app.revanced.patches.youtube.layout.general.resource.patch
|
||||
package app.revanced.patches.youtube.extended.shortspip.resource.patch
|
||||
|
||||
import app.revanced.patcher.annotation.Description
|
||||
import app.revanced.patcher.annotation.Name
|
||||
@ -9,7 +9,7 @@ import app.revanced.patcher.patch.annotations.Patch
|
||||
import app.revanced.patcher.patch.PatchResult
|
||||
import app.revanced.patcher.patch.PatchResultSuccess
|
||||
import app.revanced.patcher.patch.ResourcePatch
|
||||
import app.revanced.patches.youtube.layout.general.bytecode.patch.DisableShortsPiPBytecodePatch
|
||||
import app.revanced.patches.youtube.extended.shortspip.bytecode.patch.DisableShortsPiPBytecodePatch
|
||||
import app.revanced.patches.youtube.misc.settings.resource.patch.SettingsPatch
|
||||
import app.revanced.shared.annotation.YouTubeCompatibility
|
||||
import app.revanced.shared.util.resources.ResourceHelper
|
||||
@ -31,13 +31,11 @@ class DisableShortsPiPPatch : ResourcePatch {
|
||||
/*
|
||||
add settings
|
||||
*/
|
||||
ResourceHelper.addSettings4(
|
||||
ResourceHelper.addSettings2(
|
||||
context,
|
||||
"PREFERENCE_CATEGORY: REVANCED_SETTINGS",
|
||||
"PREFERENCE: LAYOUT_SETTINGS",
|
||||
"PREFERENCE_HEADER: GENERAL",
|
||||
"SETTINGS: SHORTS_COMPONENT.PARENT",
|
||||
"SETTINGS: SHORTS_COMPONENT_PARENT.B",
|
||||
"PREFERENCE_CATEGORY: REVANCED_EXTENDED_SETTINGS",
|
||||
"PREFERENCE: EXTENDED_SETTINGS",
|
||||
"SETTINGS: EXPERIMENTAL_FLAGS",
|
||||
"SETTINGS: DISABLE_SHORTS_PLAYER_PIP"
|
||||
)
|
||||
|
Reference in New Issue
Block a user