Browse Source

android: log a warning if listeners could not be attached

master
Saúl Ibarra Corretgé 6 years ago
parent
commit
5b99219f29

+ 4
- 0
android/sdk/src/main/java/org/jitsi/meet/sdk/AudioDeviceHandlerConnectionService.java View File

137
         RNConnectionService rcs = ReactInstanceManagerHolder.getNativeModule(RNConnectionService.class);
137
         RNConnectionService rcs = ReactInstanceManagerHolder.getNativeModule(RNConnectionService.class);
138
         if (rcs != null) {
138
         if (rcs != null) {
139
             rcs.setCallAudioStateListener(this);
139
             rcs.setCallAudioStateListener(this);
140
+        } else {
141
+            JitsiMeetLogger.w(TAG + " Couldn't set call audio state listener, module is null");
140
         }
142
         }
141
     }
143
     }
142
 
144
 
145
         RNConnectionService rcs = ReactInstanceManagerHolder.getNativeModule(RNConnectionService.class);
147
         RNConnectionService rcs = ReactInstanceManagerHolder.getNativeModule(RNConnectionService.class);
146
         if (rcs != null) {
148
         if (rcs != null) {
147
             rcs.setCallAudioStateListener(null);
149
             rcs.setCallAudioStateListener(null);
150
+        } else {
151
+            JitsiMeetLogger.w(TAG + " Couldn't set call audio state listener, module is null");
148
         }
152
         }
149
     }
153
     }
150
 
154
 

Loading…
Cancel
Save