fix(YouTube - Remove background playback restriction): Play/Pause button not working in PiP mode https://github.com/inotia00/ReVanced_Extended/issues/2764

This commit is contained in:
inotia00
2025-02-07 16:00:16 +09:00
parent 6f1fc6116b
commit 38949e12fd
3 changed files with 93 additions and 22 deletions

View File

@ -18,16 +18,6 @@ public class BackgroundPlaybackPatch {
return ShortsPlayerState.getCurrent().isClosed();
}
/**
* Injection point.
*/
public static boolean isBackgroundShortsPlaybackAllowed() {
if (PlayerType.getCurrent().isNoneHiddenOrMinimized()) {
return !DISABLE_SHORTS_BACKGROUND_PLAYBACK.get();
}
return false;
}
/**
* Injection point.
*/