mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-12 08:36:51 +01:00
fix(YouTube - Minimized playback): Fix pip incorrectly showing for Short playback (#504)
This commit is contained in:
parent
6f45e88cb0
commit
9350f4b451
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user