From 31a35ce7218502e6b613ef1b4e4e2f7c6fa0a980 Mon Sep 17 00:00:00 2001 From: luvletter2333 Date: Fri, 20 Aug 2021 04:04:01 +0800 Subject: [PATCH] Disable switchToPip by default --- TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java b/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java index 2aac5fe9b..736b6d9d3 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/PhotoViewer.java @@ -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); }