Skip to content

Commit

Permalink
fix(YouTube - Minimized playback): Fix pip incorrectly showing for Sh…
Browse files Browse the repository at this point in the history
…ort playback (#504)
  • Loading branch information
LisoUseInAIKyrios committed Oct 20, 2023
1 parent 650a5e0 commit 6d5a5c8
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -4,10 +4,16 @@

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.
Expand Down

0 comments on commit 6d5a5c8

Please sign in to comment.