From 91e94db747792746487155b94d7c2caca94e5c9a Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 24 Aug 2020 09:51:26 +0200 Subject: [PATCH] extend isBusyState to check phone state as well --- src/main/AndroidManifest.xml | 5 +---- .../services/XmppConnectionService.java | 22 +++++++++++++++++++ .../xmpp/jingle/JingleConnectionManager.java | 11 ++++++---- 3 files changed, 30 insertions(+), 8 deletions(-) diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index c78d32a98..ffd06ec0f 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -7,6 +7,7 @@ + @@ -36,10 +37,6 @@ - - d instanceof RtpDescription), input -> (RtpDescription) input ); - if (rtpDescriptions.size() > 0 && rtpDescriptions.size() == descriptions.size() && !usesTor(account)) { + if (rtpDescriptions.size() > 0 && rtpDescriptions.size() == descriptions.size() && isUsingClearNet(account)) { final Collection media = Collections2.transform(rtpDescriptions, RtpDescription::getMedia); if (media.contains(Media.UNKNOWN)) { Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": encountered unknown media in session proposal. " + propose);