1
mirror of https://github.com/revanced/revanced-integrations synced 2024-11-24 20:07:14 +01:00

fix(YouTube - Minimized playback): Fix pip incorrectly showing for Short playback (#504)

This commit is contained in:
LisoUseInAIKyrios 2023-10-20 13:18:02 +03:00 committed by GitHub
parent 650a5e06ee
commit 6d5a5c8281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,10 +4,16 @@ import app.revanced.integrations.shared.PlayerType;
public class MinimizedPlaybackPatch {
public static boolean isPlaybackNotShort() {
/**
* Injection point.
*/
public static boolean videoSupportsMinimizedPlayback() {
return !PlayerType.getCurrent().isNoneHiddenOrSlidingMinimized();
}
/**
* Injection point.
*/
public static boolean overrideMinimizedPlaybackAvailable() {
// This could be done entirely in the patch,
// but having a unique method to search for makes manually inspecting the patched apk much easier.