Disable switchToPip by default
This commit is contained in:
parent
f0761cb93c
commit
31a35ce721
@ -14671,6 +14671,9 @@ public class PhotoViewer implements NotificationCenter.NotificationCenterDelegat
|
||||
}
|
||||
|
||||
private boolean enableSwipeToPiP() {
|
||||
if (!BuildVars.DEBUG_PRIVATE_VERSION) {
|
||||
return false;
|
||||
}
|
||||
boolean permissionsEnabled = Build.VERSION.SDK_INT < 23 || Settings.canDrawOverlays(parentActivity);
|
||||
return pipAvailable && textureUploaded && videoPlayer != null && videoPlayer.getRepeatCount() == 0 && permissionsEnabled && !(changingTextureView || switchingInlineMode || isInline);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user