mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-04-29 22:24:31 +02:00
fix(YouTube - Remove background playback restriction): Play/Pause button not working in PiP mode (Unpatched YouTube bug) https://github.com/inotia00/ReVanced_Extended/issues/2764
This commit is contained in:
parent
3753ecb890
commit
0ece1b9aea
@ -97,6 +97,11 @@ val backgroundPlaybackPatch = bytecodePatch(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pipInputConsumerFeatureFlagFingerprint.injectLiteralInstructionBooleanCall(
|
||||
PIP_INPUT_CONSUMER_FEATURE_FLAG,
|
||||
"0x0"
|
||||
)
|
||||
}
|
||||
|
||||
// Force allowing background play for videos labeled for kids.
|
||||
|
@ -125,6 +125,17 @@ internal val backgroundPlaybackManagerCairoFragmentSecondaryFingerprint = legacy
|
||||
),
|
||||
)
|
||||
|
||||
internal const val PIP_INPUT_CONSUMER_FEATURE_FLAG = 45638483L
|
||||
|
||||
/**
|
||||
* Fix 'E/InputDispatcher: Window handle pip_input_consumer has no registered input channel'
|
||||
* Related with [ReVanced_Extended#2764](https://github.com/inotia00/ReVanced_Extended/issues/2764).
|
||||
*/
|
||||
internal val pipInputConsumerFeatureFlagFingerprint = legacyFingerprint(
|
||||
name = "pipInputConsumerFeatureFlagFingerprint",
|
||||
literals = listOf(PIP_INPUT_CONSUMER_FEATURE_FLAG),
|
||||
)
|
||||
|
||||
internal const val SHORTS_BACKGROUND_PLAYBACK_FEATURE_FLAG = 45415425L
|
||||
|
||||
internal val shortsBackgroundPlaybackFeatureFlagFingerprint = legacyFingerprint(
|
||||
|
Loading…
x
Reference in New Issue
Block a user