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:
parent
650a5e06ee
commit
6d5a5c8281
@ -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…
Reference in New Issue
Block a user