Allow swipe to pip

This commit is contained in:
NekoInverter 2021-01-09 18:31:15 +08:00 committed by 世界
parent f7576131b2
commit e8a1e52992
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4
1 changed files with 0 additions and 3 deletions

View File

@ -13609,9 +13609,6 @@ 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);
}