From 5b99219f293c36aac8401ceb7102a65ae17a776f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 8 Nov 2019 11:00:14 +0100 Subject: [PATCH] android: log a warning if listeners could not be attached --- .../jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java index b1a99bf0a..ede3d0eaf 100644 --- a/android/sdk/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java +++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java @@ -137,6 +137,8 @@ class AudioDeviceHandlerConnectionService implements RNConnectionService rcs = ReactInstanceManagerHolder.getNativeModule(RNConnectionService.class); if (rcs != null) { rcs.setCallAudioStateListener(this); + } else { + JitsiMeetLogger.w(TAG + " Couldn't set call audio state listener, module is null"); } } @@ -145,6 +147,8 @@ class AudioDeviceHandlerConnectionService implements RNConnectionService rcs = ReactInstanceManagerHolder.getNativeModule(RNConnectionService.class); if (rcs != null) { rcs.setCallAudioStateListener(null); + } else { + JitsiMeetLogger.w(TAG + " Couldn't set call audio state listener, module is null"); } }