From d0bb8abd61c4b8a9e74be0df284d9ad96d939cdc Mon Sep 17 00:00:00 2001 From: arm64v8a <48624112+arm64v8a@users.noreply.github.com> Date: Sat, 6 Nov 2021 18:59:19 +0800 Subject: [PATCH] fix disableProxyWhenVpnEnabled --- TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java index 22962b1ed..d1d98cb91 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java @@ -4271,10 +4271,12 @@ public class LaunchActivity extends Activity implements ActionBarLayout.ActionBa } else if (!ProxyUtil.isVPNEnabled()) { SharedConfig.setProxyEnable(true); } + NotificationCenter.getGlobalInstance().postNotificationName(NotificationCenter.proxySettingsChanged); } ConnectionsManager.getInstance(currentAccount).setAppPaused(false, false); updateCurrentConnectionState(currentAccount); + if (PhotoViewer.hasInstance() && PhotoViewer.getInstance().isVisible()) { PhotoViewer.getInstance().onResume(); }