Disable switchToPip by default

This commit is contained in:
luvletter2333 2021-08-20 04:04:01 +08:00
parent f0761cb93c
commit 31a35ce721
No known key found for this signature in database
GPG Key ID: BFD68B892BECC1D8

View File

@ -14671,6 +14671,9 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
} }
private boolean enableSwipeToPiP() { private boolean enableSwipeToPiP() {
if (!BuildVars.DEBUG_PRIVATE_VERSION) {
return false;
}
boolean permissionsEnabled = Build.VERSION.SDK_INT < 23 || Settings.canDrawOverlays(parentActivity); boolean permissionsEnabled = Build.VERSION.SDK_INT < 23 || Settings.canDrawOverlays(parentActivity);
return pipAvailable && textureUploaded && videoPlayer != null && videoPlayer.getRepeatCount() == 0 && permissionsEnabled && !(changingTextureView || switchingInlineMode || isInline); return pipAvailable && textureUploaded && videoPlayer != null && videoPlayer.getRepeatCount() == 0 && permissionsEnabled && !(changingTextureView || switchingInlineMode || isInline);
} }